diff options
author | Chris Jackson <chris.jackson@sony.com> | 2021-07-28 09:57:03 +0100 |
---|---|---|
committer | Chris Jackson <chris.jackson@sony.com> | 2021-07-28 10:05:54 +0100 |
commit | 04b94c7caee48919d937350c312604d6c39365a4 (patch) | |
tree | 0a0d1d58372074d7552ebad5999e4e7d0e54c2fd /llvm/lib/Transforms/Utils/ScalarEvolutionExpander.cpp | |
parent | 71616722d4092f88861e9eb337e2902bbab2cbd4 (diff) | |
download | llvm-04b94c7caee48919d937350c312604d6c39365a4.zip llvm-04b94c7caee48919d937350c312604d6c39365a4.tar.gz llvm-04b94c7caee48919d937350c312604d6c39365a4.tar.bz2 |
Revert "[DebugInfo][LoopStrengthReduction] SCEV-based salvaging for LSR"
Crashes were reported on the upstreamm revision:
https://reviews.llvm.org/D105207
This reverts commit 796b84d26f4d461fb50e7b4e84e15a10eaca88fc.
Diffstat (limited to 'llvm/lib/Transforms/Utils/ScalarEvolutionExpander.cpp')
-rw-r--r-- | llvm/lib/Transforms/Utils/ScalarEvolutionExpander.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/llvm/lib/Transforms/Utils/ScalarEvolutionExpander.cpp b/llvm/lib/Transforms/Utils/ScalarEvolutionExpander.cpp index 3978e1e..5af1c37 100644 --- a/llvm/lib/Transforms/Utils/ScalarEvolutionExpander.cpp +++ b/llvm/lib/Transforms/Utils/ScalarEvolutionExpander.cpp @@ -1393,10 +1393,9 @@ SCEVExpander::getAddRecExprPHILiterally(const SCEVAddRecExpr *Normalized, // can ensure that IVIncrement dominates the current uses. PostIncLoops = SavedPostIncLoops; - // Remember this PHI, even in post-inc mode. LSR SCEV-based salvaging is most - // effective when we are able to use an IV inserted here, so record it. + // Remember this PHI, even in post-inc mode. InsertedValues.insert(PN); - InsertedIVs.push_back(PN); + return PN; } |