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

[CIR] Put loop body in nested scopes #1221

Merged
merged 2 commits into from
Dec 17, 2024
Merged

Conversation

Lancern
Copy link
Member

@Lancern Lancern commented Dec 10, 2024

This PR puts for-loop body, while-loop body, and do-while-loop body in nested scopes. Allocas in the loop body are now push down to the nested scope.

Resolve #1218 .

This patch puts for-loop body, while-loop body, and do-while-loop body in nested
scopes. Allocas in the loop body are now push down to the nested scope.

Resolve llvm#1218 .
@bcardosolopes bcardosolopes merged commit 49edd4b into llvm:main Dec 17, 2024
6 checks passed
@Lancern Lancern deleted the fix-loop-scope branch December 18, 2024 01:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Loop body should be emitted in different scope
2 participants