diff options
| author | 2026-03-22 10:45:22 +0100 | |
|---|---|---|
| committer | 2026-03-22 10:49:30 +0100 | |
| commit | f9e3a52eaa6ae91388aa247182da6df3cc8d5a05 (patch) | |
| tree | 0fa1b5604ebeaf4a1efbcb5242cf8bb07b4f1d76 /test/external/c-testsuite/tests/single-exec/00027.c.expected | |
| parent | 79874c83bf76a5b3efd3d558933b90d9b53b829e (diff) | |
mem2reg: fix rare edge case with weird control flow
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.
Diffstat (limited to 'test/external/c-testsuite/tests/single-exec/00027.c.expected')
0 files changed, 0 insertions, 0 deletions