[llvm-commits] [llvm] r47361 - /llvm/trunk/lib/Analysis/ScalarEvolution.cpp
Nick Lewycky
nicholas at mxc.ca
Tue Feb 19 22:58:55 PST 2008
Author: nicholas
Date: Wed Feb 20 00:58:55 2008
New Revision: 47361
URL: http://llvm.org/viewvc/llvm-project?rev=47361&view=rev
Log:
Use getConstant for ConstantInts.
Modified:
llvm/trunk/lib/Analysis/ScalarEvolution.cpp
Modified: llvm/trunk/lib/Analysis/ScalarEvolution.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Analysis/ScalarEvolution.cpp?rev=47361&r1=47360&r2=47361&view=diff
==============================================================================
--- llvm/trunk/lib/Analysis/ScalarEvolution.cpp (original)
+++ llvm/trunk/lib/Analysis/ScalarEvolution.cpp Wed Feb 20 00:58:55 2008
@@ -522,7 +522,7 @@
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 @@
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);
}
More information about the llvm-commits
mailing list