diff options
author | Roman Lebedev <lebedev.ri@gmail.com> | 2021-08-16 14:30:00 +0300 |
---|---|---|
committer | Roman Lebedev <lebedev.ri@gmail.com> | 2021-08-16 14:30:29 +0300 |
commit | febcedf18c75c603d6336b2373dcd6f01bc8028d (patch) | |
tree | 4bdd633c12d9707dc08cdd67bded679fb288d21f /llvm/lib/Transforms/Utils/LoopUtils.cpp | |
parent | 79aed89ea3af606901ff716c38796bee43a765c0 (diff) | |
download | llvm-febcedf18c75c603d6336b2373dcd6f01bc8028d.zip llvm-febcedf18c75c603d6336b2373dcd6f01bc8028d.tar.gz llvm-febcedf18c75c603d6336b2373dcd6f01bc8028d.tar.bz2 |
Revert "[NFCI][IndVars] rewriteLoopExitValues(): nowadays SCEV should not change `GEP` base pointer"
https://bugs.llvm.org/show_bug.cgi?id=51490 was filed.
This reverts commit 35a8bdc775817ce13a6c9b5cf81502052634aa1f.
Diffstat (limited to 'llvm/lib/Transforms/Utils/LoopUtils.cpp')
-rw-r--r-- | llvm/lib/Transforms/Utils/LoopUtils.cpp | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/llvm/lib/Transforms/Utils/LoopUtils.cpp b/llvm/lib/Transforms/Utils/LoopUtils.cpp index 49dbb04..661b99f 100644 --- a/llvm/lib/Transforms/Utils/LoopUtils.cpp +++ b/llvm/lib/Transforms/Utils/LoopUtils.cpp @@ -1346,9 +1346,6 @@ int llvm::rewriteLoopExitValues(Loop *L, LoopInfo *LI, TargetLibraryInfo *TLI, // FIXME: isValidRewrite() is a hack. it should be an assert, eventually. Phi.ValidRewrite = isValidRewrite(SE, Phi.ExpansionPoint, Phi.Expansion); - assert(Phi.ValidRewrite && - "Now that the SCEV is strict wrt pointer/integer types, this " - "invariant is expected to be uphold by SCEV itself."); if (!Phi.ValidRewrite) { DeadInsts.push_back(Phi.Expansion); continue; |