summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Transforms
diff options
context:
space:
mode:
authorDan Gohman <gohman@apple.com>2007-06-15 18:00:55 +0000
committerDan Gohman <gohman@apple.com>2007-06-15 18:00:55 +0000
commit203a03525194ed7dc186f6ffdd2113320479a95b (patch)
tree53d63077981474f4733b46e06c931ca28aa55822 /llvm/lib/Transforms
parentacaed068272f1e3ab1a90525fcf9c7a5894a52f6 (diff)
downloadbcm5719-llvm-203a03525194ed7dc186f6ffdd2113320479a95b.tar.gz
bcm5719-llvm-203a03525194ed7dc186f6ffdd2113320479a95b.zip
Use SCEVConstant::get instead of SCEVUnknown::get to create an
integer constant SCEV. llvm-svn: 37596
Diffstat (limited to 'llvm/lib/Transforms')
-rw-r--r--llvm/lib/Transforms/Scalar/IndVarSimplify.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/Transforms/Scalar/IndVarSimplify.cpp b/llvm/lib/Transforms/Scalar/IndVarSimplify.cpp
index 5965d1a8855..2558fe15d11 100644
--- a/llvm/lib/Transforms/Scalar/IndVarSimplify.cpp
+++ b/llvm/lib/Transforms/Scalar/IndVarSimplify.cpp
@@ -264,8 +264,8 @@ Instruction *IndVarSimplify::LinearFunctionTestReplace(Loop *L,
// The IterationCount expression contains the number of times that the
// backedge actually branches to the loop header. This is one less than the
// number of times the loop executes, so add one to it.
- Constant *OneC = ConstantInt::get(IterationCount->getType(), 1);
- TripCount = SCEVAddExpr::get(IterationCount, SCEVUnknown::get(OneC));
+ ConstantInt *OneC = ConstantInt::get(IterationCount->getType(), 1);
+ TripCount = SCEVAddExpr::get(IterationCount, SCEVConstant::get(OneC));
IndVar = L->getCanonicalInductionVariableIncrement();
} else {
// We have to use the preincremented value...
OpenPOWER on IntegriCloud