aboutsummaryrefslogtreecommitdiffhomepage
path: root/test/18-goto2.c
Commit message (Collapse)AuthorAgeFilesLines
* mem2reg: fix rare edge case with weird control flow lemon2026-03-221-0/+24
mem2reg was assuming alloca's appeared before all their uses. When this didn't happen it broke the logic re. sealed blocks. Normally this doesn't happen in most natural code. Even with gotos, RPO would assure this in most cases, the exception I found is a goto that jumps into a loop past a variable declaration that is earlier in the loop. Then even RPO would keep the alloca itself past the first uses, breaking things.