[llvm] [LoopSimplifyCFG] Fix SCEV invalidation after removing dead exit (PR #127536)

Aleksandr Popov via llvm-commits llvm-commits at lists.llvm.org
Wed Feb 19 07:11:39 PST 2025


================
@@ -370,6 +370,7 @@ class ConstantTerminatorFoldingImpl {
 
       for (Instruction *I : DeadInstructions) {
         SE.forgetBlockAndLoopDispositions(I);
+        SE.forgetValue(I);
----------------
aleks-tmb wrote:

Dropped, thank you!

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


More information about the llvm-commits mailing list