Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix bug in CFG with while true loops #98

Open
anthonyyangdev opened this issue May 5, 2020 · 3 comments
Open

Fix bug in CFG with while true loops #98

anthonyyangdev opened this issue May 5, 2020 · 3 comments
Assignees
Labels
bug Something isn't working

Comments

@anthonyyangdev
Copy link
Collaborator

Prevent nodes with side effects from being unintentionally looped.
Check this issue in AsmCFG and IrCFG

@anthonyyangdev anthonyyangdev added the bug Something isn't working label May 5, 2020
@whoiswillma
Copy link
Collaborator

I thought this issue was resolved in the IR CFG constructor?

If it's not, can you tackle this one? Seemed like you had this one figured out

@anthonyyangdev
Copy link
Collaborator Author

Resolved, but it may not necessarily be the best solution. Recall it was done by adding an if node that just loops to itself. It might be better to introduce a nop node that loops to itself instead which can then be removed when going from CFG to IR.

I might need to be more careful with AsmCFG though since we are also keeping track of index numbers with the cfg nodes, but I can look into this issue.

@anthonyyangdev anthonyyangdev self-assigned this May 5, 2020
@anthonyyangdev
Copy link
Collaborator Author

Fixed issue with while loops for IR CFGs in branch copy-prop

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants