[PATCH] D132443: [LSR] Fold terminating condition to other IV when possible
Craig Topper via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu Sep 15 18:22:06 PDT 2022
craig.topper added inline comments.
================
Comment at: llvm/lib/Transforms/Scalar/LoopStrengthReduce.cpp:6849
+
+ OldTermCond->eraseFromParent();
+ DeleteDeadPHIs(L->getHeader(), &TLI, MSSAU.get());
----------------
What if OldTermCond isn't the direct user of the ToFold phi? Do we clean everything?
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D132443/new/
https://reviews.llvm.org/D132443
More information about the llvm-commits
mailing list