-
Notifications
You must be signed in to change notification settings - Fork 126
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
Support variable declaration in for loop setup #117
Conversation
ChAoSUnItY
commented
Mar 4, 2024
- Resolve Declare variables where needed #115 , this allows variables declare in the scope of for loop body, to avoid loose variable liveness, in other word, variable can have stricter scope liveness by declaring in setup section of for loop.
CI complains below:
@vacantron, can you help resolve? |
The new cfront feature is going to change the CFGs. Use By the way, the changes causes the inconsistent behavior with GCC build while unwinding the phi instruction in the second stage, and breaks the self-hosting. I'm trying to figure it out. |
Rebase the |
That's weird, I updated snapshot after rebase and it still panics on stage 2. |
The second stage is broken by the SSA now, but the snapshot test should be passed tho. I run |
After running |
There is a typo in the commands that I provided previously. Try |
Yes, specifically, on Arch Linux.
It still failed on stage 2. |
Can you test the |
I can confirm that using |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Rebase the latest master
branch and re-generate snapshots.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Leave a blank line between the subject and the body of the commit message, and use git rebase -i
to squash some commits
See also: https://cbea.ms/git-commit/ |
This allows variables declare in the scope of for loop body, to avoid loose variable liveness, in other word, variable can have stricter scope liveness.
Thank @ChAoSUnItY for contributing! |