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 | b0a2f9513f27da37cad1896f1ba7458c6030142c (patch) | |
tree | c2ed1bd5da2104112eec809bfbaf1d177df7cdcb | |
parent | 1c44ebcf8645a68b3f01161ed94eea43bcd79aae (diff) | |
download | bcm5719-llvm-b0a2f9513f27da37cad1896f1ba7458c6030142c.tar.gz bcm5719-llvm-b0a2f9513f27da37cad1896f1ba7458c6030142c.zip |
Use getConstant for ConstantInts.
llvm-svn: 47361
-rw-r--r-- | llvm/lib/Analysis/ScalarEvolution.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/Analysis/ScalarEvolution.cpp b/llvm/lib/Analysis/ScalarEvolution.cpp index 0aeecb76bcc..7f1cac0f43d 100644 --- a/llvm/lib/Analysis/ScalarEvolution.cpp +++ b/llvm/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); } |