diff options
author | Chris Jackson <chris.jackson@sony.com> | 2021-07-27 13:34:20 +0100 |
---|---|---|
committer | Chris Jackson <chris.jackson@sony.com> | 2021-07-27 13:36:56 +0100 |
commit | 1930c4410d6b48645b7b7c58cf4403a2a0e3836d (patch) | |
tree | 9de5064675003b47ef494d37e1034e52c48e6779 /llvm/lib/Transforms/Utils/ScalarEvolutionExpander.cpp | |
parent | e2559e5dc62445a92a9a5344db79f78f735e1e61 (diff) | |
download | llvm-1930c4410d6b48645b7b7c58cf4403a2a0e3836d.zip llvm-1930c4410d6b48645b7b7c58cf4403a2a0e3836d.tar.gz llvm-1930c4410d6b48645b7b7c58cf4403a2a0e3836d.tar.bz2 |
[DebugInfo][LoopStrengthReduction] SCEV-based salvaging for LSR
This reverts commit 76f3ffb2b285998f02639db8fd42fb0de8a540d0 because
of a failure on sanitixer-X86-64-linux-autoconf.
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; } |