summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Transforms/Scalar/LoopDeletion.cpp
diff options
context:
space:
mode:
authorPhilip Reames <listmail@philipreames.com>2019-08-14 21:58:13 +0000
committerPhilip Reames <listmail@philipreames.com>2019-08-14 21:58:13 +0000
commit7b0515176b15715e554cf46f896eaf07da7b49f0 (patch)
tree17dad0518f7b308dd894d804c7f0f854b8d41429 /llvm/lib/Transforms/Scalar/LoopDeletion.cpp
parent1bebc22bd94d44214bbd8a2dad10736c7c5e205b (diff)
downloadbcm5719-llvm-7b0515176b15715e554cf46f896eaf07da7b49f0.tar.gz
bcm5719-llvm-7b0515176b15715e554cf46f896eaf07da7b49f0.zip
[SCEV] Rename getMaxBackedgeTakenCount to getConstantMaxBackedgeTakenCount [NFC]
llvm-svn: 368930
Diffstat (limited to 'llvm/lib/Transforms/Scalar/LoopDeletion.cpp')
-rw-r--r--llvm/lib/Transforms/Scalar/LoopDeletion.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Transforms/Scalar/LoopDeletion.cpp b/llvm/lib/Transforms/Scalar/LoopDeletion.cpp
index 8371367e24e..cee197cf835 100644
--- a/llvm/lib/Transforms/Scalar/LoopDeletion.cpp
+++ b/llvm/lib/Transforms/Scalar/LoopDeletion.cpp
@@ -191,7 +191,7 @@ static LoopDeletionResult deleteLoopIfDead(Loop *L, DominatorTree &DT,
// Don't remove loops for which we can't solve the trip count.
// They could be infinite, in which case we'd be changing program behavior.
- const SCEV *S = SE.getMaxBackedgeTakenCount(L);
+ const SCEV *S = SE.getConstantMaxBackedgeTakenCount(L);
if (isa<SCEVCouldNotCompute>(S)) {
LLVM_DEBUG(dbgs() << "Could not compute SCEV MaxBackedgeTakenCount.\n");
return Changed ? LoopDeletionResult::Modified
OpenPOWER on IntegriCloud