aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Transforms/Utils
diff options
context:
space:
mode:
authorDimitry Andric <dim@FreeBSD.org>2021-07-29 20:31:35 +0000
committerDimitry Andric <dim@FreeBSD.org>2021-07-29 20:31:35 +0000
commitfa40418fea35c68de2a358bce3539cdc5cbcd21a (patch)
tree4b9e82662e389ee0f136ea652b5bfdcfb2a29dc2 /llvm/lib/Transforms/Utils
parent344a3780b2e33f6ca763666c380202b18aab72a3 (diff)
Diffstat (limited to 'llvm/lib/Transforms/Utils')
-rw-r--r--llvm/lib/Transforms/Utils/ScalarEvolutionExpander.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/llvm/lib/Transforms/Utils/ScalarEvolutionExpander.cpp b/llvm/lib/Transforms/Utils/ScalarEvolutionExpander.cpp
index 3978e1e29825..5af1c37e6197 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;
}