diff options
author | Dan Gohman <gohman@apple.com> | 2007-06-15 18:00:55 +0000 |
---|---|---|
committer | Dan Gohman <gohman@apple.com> | 2007-06-15 18:00:55 +0000 |
commit | e19dd875987f8327cd93a502d4a05fc1f37064ee (patch) | |
tree | 3078a5df64a60b6aa2eb6f2ea06ff0fbf3bb31e2 /lib | |
parent | 383bcb2e786157292384acbe20489147e11a2cda (diff) |
Use SCEVConstant::get instead of SCEVUnknown::get to create an
integer constant SCEV.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@37596 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib')
-rw-r--r-- | lib/Transforms/Scalar/IndVarSimplify.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/Transforms/Scalar/IndVarSimplify.cpp b/lib/Transforms/Scalar/IndVarSimplify.cpp index 5965d1a885..2558fe15d1 100644 --- a/lib/Transforms/Scalar/IndVarSimplify.cpp +++ b/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... |