[PATCH] D137060: [IndVars] Forget the SCEV when the instruction has been sunk.

luxufan via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Nov 2 10:48:30 PDT 2022


StephenFan updated this revision to Diff 472694.
StephenFan retitled this revision from "[IndVars] Forget a SCEV when an instruction has been sunk." to "[IndVars] Forget the SCEV when the instruction has been sunk.".
StephenFan added a comment.

Fix grammer.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D137060/new/

https://reviews.llvm.org/D137060

Files:
  llvm/lib/Transforms/Scalar/IndVarSimplify.cpp


Index: llvm/lib/Transforms/Scalar/IndVarSimplify.cpp
===================================================================
--- llvm/lib/Transforms/Scalar/IndVarSimplify.cpp
+++ llvm/lib/Transforms/Scalar/IndVarSimplify.cpp
@@ -1282,6 +1282,7 @@
     MadeAnyChanges = true;
     ToMove->moveBefore(*ExitBlock, InsertPt);
     SE->forgetBlockAndLoopDispositions(ToMove);
+    SE->forgetValue(ToMove);
     if (Done) break;
     InsertPt = ToMove->getIterator();
   }


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D137060.472694.patch
Type: text/x-patch
Size: 463 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20221102/bb384acd/attachment.bin>


More information about the llvm-commits mailing list