[llvm] [LoopInterchange] Swap preheader contents before rebuilding LCSSA (PR #218468)
Madhur Amilkanthwar via llvm-commits
llvm-commits at lists.llvm.org
Mon Aug 24 22:48:05 PDT 2026
================
----------------
madhur13490 wrote:
I think after this line, you should assert something like below (with proper comment):
```
// Guard for a future reordering
assert(!verifyFunction(*OuterLoopHeader->getParent(), &errs()) &&
"LoopInterchange handed dominance-broken IR to LCSSA rebuild");
```
https://github.com/llvm/llvm-project/pull/218468
More information about the llvm-commits
mailing list