[llvm] [SCEV][LV] Invalidate LCSSA exit phis more thoroughly (PR #69909)

Florian Hahn via llvm-commits llvm-commits at lists.llvm.org
Wed Nov 15 07:16:20 PST 2023


================
@@ -8408,6 +8408,35 @@ void ScalarEvolution::forgetValue(Value *V) {
   forgetMemoizedResults(ToForget);
 }
 
+void ScalarEvolution::forgetLcssaPhiWithNewPredecessor(PHINode *V) {
+  // If SCEV looked through a trivial LCSSA phi node, we might have SCEV's
+  // directly using a SCEVUnknown defined in the loop. After an extra
----------------
fhahn wrote:

Is this accurate? `follow` has a comment that it *could* be restricted, but isn't at the moment AFAICT?

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


More information about the llvm-commits mailing list