aboutsummaryrefslogtreecommitdiffstats
path: root/lib/Transforms/Scalar/IndVarSimplify.cpp
diff options
context:
space:
mode:
authorDan Gohman <gohman@apple.com>2010-04-11 19:27:13 +0000
committerDan Gohman <gohman@apple.com>2010-04-11 19:27:13 +0000
commit3948d0b8b0a71fabf25fceba1858b2b6a60d3d00 (patch)
treeb66534faf383c5c8f51235c5b2efd8a468acf50e /lib/Transforms/Scalar/IndVarSimplify.cpp
parentb61e94fcf898a8b3b6bf7a8a18b390b82ff037f5 (diff)
downloadexternal_llvm-3948d0b8b0a71fabf25fceba1858b2b6a60d3d00.tar.gz
external_llvm-3948d0b8b0a71fabf25fceba1858b2b6a60d3d00.tar.bz2
external_llvm-3948d0b8b0a71fabf25fceba1858b2b6a60d3d00.zip
Rename isLoopGuardedByCond to isLoopEntryGuardedByCond, to emphasise
that it's only testing for the entry condition, not full loop-invariant conditions. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@100979 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Transforms/Scalar/IndVarSimplify.cpp')
-rw-r--r--lib/Transforms/Scalar/IndVarSimplify.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Transforms/Scalar/IndVarSimplify.cpp b/lib/Transforms/Scalar/IndVarSimplify.cpp
index 1a58b6644f..f87d69360c 100644
--- a/lib/Transforms/Scalar/IndVarSimplify.cpp
+++ b/lib/Transforms/Scalar/IndVarSimplify.cpp
@@ -147,7 +147,7 @@ ICmpInst *IndVarSimplify::LinearFunctionTestReplace(Loop *L,
SE->getAddExpr(BackedgeTakenCount,
SE->getIntegerSCEV(1, BackedgeTakenCount->getType()));
if ((isa<SCEVConstant>(N) && !N->isZero()) ||
- SE->isLoopGuardedByCond(L, ICmpInst::ICMP_NE, N, Zero)) {
+ SE->isLoopEntryGuardedByCond(L, ICmpInst::ICMP_NE, N, Zero)) {
// No overflow. Cast the sum.
RHS = SE->getTruncateOrZeroExtend(N, IndVar->getType());
} else {