aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Transforms/Utils/SimplifyIndVar.cpp
diff options
context:
space:
mode:
authorMax Kazantsev <mkazantsev@azul.com>2022-08-19 20:51:06 +0700
committerMax Kazantsev <mkazantsev@azul.com>2022-08-19 21:02:06 +0700
commitf798c042f42aaa47604af30eb235edb22d0ca5d3 (patch)
tree4e7e1520299869218f05f66b39baf5396d482c0a /llvm/lib/Transforms/Utils/SimplifyIndVar.cpp
parent5779966da82b8217ad66da890718755226fd32e7 (diff)
downloadllvm-f798c042f42aaa47604af30eb235edb22d0ca5d3.zip
llvm-f798c042f42aaa47604af30eb235edb22d0ca5d3.tar.gz
llvm-f798c042f42aaa47604af30eb235edb22d0ca5d3.tar.bz2
Revert "[SCEV] Prove condition invariance via context"
This reverts commit a3d1fb3b59b473e4f262a05f187de6474b7721e7. Reverting until investigation of https://github.com/llvm/llvm-project/issues/57247 has concluded.
Diffstat (limited to 'llvm/lib/Transforms/Utils/SimplifyIndVar.cpp')
-rw-r--r--llvm/lib/Transforms/Utils/SimplifyIndVar.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/llvm/lib/Transforms/Utils/SimplifyIndVar.cpp b/llvm/lib/Transforms/Utils/SimplifyIndVar.cpp
index 08c48b0..0a856ee 100644
--- a/llvm/lib/Transforms/Utils/SimplifyIndVar.cpp
+++ b/llvm/lib/Transforms/Utils/SimplifyIndVar.cpp
@@ -213,8 +213,7 @@ bool SimplifyIndvar::makeIVComparisonInvariant(ICmpInst *ICmp,
auto *PN = dyn_cast<PHINode>(IVOperand);
if (!PN)
return false;
-
- auto LIP = SE->getLoopInvariantPredicate(Pred, S, X, L, ICmp);
+ auto LIP = SE->getLoopInvariantPredicate(Pred, S, X, L);
if (!LIP)
return false;
ICmpInst::Predicate InvariantPredicate = LIP->Pred;