[llvm] [LoopFlatten] Invalidate SCEV after flattening loops (PR #212744)

via llvm-commits llvm-commits at lists.llvm.org
Mon Aug 10 14:08:36 PDT 2026


Michael-Chen-NJU wrote:

Thanks, yes. LoopFlatten already calls SE->forgetLoop(FI.OuterLoop) after the transformation. I updated the patch to keep using `forgetLoop` instead of invalidating `ScalarEvolutionAnalysis,` and fixed SCEV so that forgetting memoized AddRec results also clears the AddRec no-wrap flags that were inferred from the old IR.

https://github.com/llvm/llvm-project/pull/212744


More information about the llvm-commits mailing list