mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-02-04 07:32:13 +00:00
Use getConstant for ConstantInts.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@47361 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
3e63076980
commit
178f20a685
@ -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);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user