diff options
author | Nick Lewycky <nicholas@mxc.ca> | 2008-02-20 06:58:55 +0000 |
---|---|---|
committer | Nick Lewycky <nicholas@mxc.ca> | 2008-02-20 06:58:55 +0000 |
commit | 0cf58683a0153058e6a9383147b7ea26187bcf82 (patch) | |
tree | 8e3cc914253063cf6abdd314e1ef5a232f078e48 /lib/Analysis | |
parent | e7a24ff7074cb3073c00feccd65ed0aef1e07b68 (diff) | |
download | external_llvm-0cf58683a0153058e6a9383147b7ea26187bcf82.zip external_llvm-0cf58683a0153058e6a9383147b7ea26187bcf82.tar.gz external_llvm-0cf58683a0153058e6a9383147b7ea26187bcf82.tar.bz2 |
Use getConstant for ConstantInts.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@47361 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Analysis')
-rw-r--r-- | lib/Analysis/ScalarEvolution.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/Analysis/ScalarEvolution.cpp b/lib/Analysis/ScalarEvolution.cpp index 0aeecb7..7f1cac0 100644 --- a/lib/Analysis/ScalarEvolution.cpp +++ b/lib/Analysis/ScalarEvolution.cpp @@ -522,7 +522,7 @@ SCEVHandle ScalarEvolution::getNegativeSCEV(const SCEVHandle &V) { if (SCEVConstant *VC = dyn_cast<SCEVConstant>(V)) return getUnknown(ConstantExpr::getNeg(VC->getValue())); - return getMulExpr(V, getUnknown(ConstantInt::getAllOnesValue(V->getType()))); + return getMulExpr(V, getConstant(ConstantInt::getAllOnesValue(V->getType()))); } /// getNotSCEV - Return a SCEV corresponding to ~V = -1-V @@ -530,7 +530,7 @@ SCEVHandle ScalarEvolution::getNotSCEV(const SCEVHandle &V) { if (SCEVConstant *VC = dyn_cast<SCEVConstant>(V)) return getUnknown(ConstantExpr::getNot(VC->getValue())); - SCEVHandle AllOnes = getUnknown(ConstantInt::getAllOnesValue(V->getType())); + SCEVHandle AllOnes = getConstant(ConstantInt::getAllOnesValue(V->getType())); return getMinusSCEV(AllOnes, V); } |