Skip to content

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
lanza pushed a commit that referenced this pull request Mar 18, 2025
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 .
terapines-osc-cir pushed a commit to Terapines/clangir that referenced this pull request Sep 2, 2025
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 llvm#1218 .
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