diff options
author | Philip Reames <listmail@philipreames.com> | 2019-08-14 21:58:13 +0000 |
---|---|---|
committer | Philip Reames <listmail@philipreames.com> | 2019-08-14 21:58:13 +0000 |
commit | 7b0515176b15715e554cf46f896eaf07da7b49f0 (patch) | |
tree | 17dad0518f7b308dd894d804c7f0f854b8d41429 /llvm/lib/Transforms/Scalar/LoopDeletion.cpp | |
parent | 1bebc22bd94d44214bbd8a2dad10736c7c5e205b (diff) | |
download | bcm5719-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.cpp | 2 |
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 |