mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-11-02 22:04:55 +00:00
Change the argument to getIntegerSCEV to be an int64_t, rather
than int. This will make it more convenient for LSR, which does a lot of things with int64_t offsets. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@95281 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
dcea16313d
commit
32efba698d
@ -517,7 +517,7 @@ namespace llvm {
|
||||
|
||||
/// getIntegerSCEV - Given a SCEVable type, create a constant for the
|
||||
/// specified signed integer value and return a SCEV for the constant.
|
||||
const SCEV *getIntegerSCEV(int Val, const Type *Ty);
|
||||
const SCEV *getIntegerSCEV(int64_t Val, const Type *Ty);
|
||||
|
||||
/// getUMaxFromMismatchedTypes - Promote the operands to the wider of
|
||||
/// the types using zero-extension, and then perform a umax operation
|
||||
|
@ -2351,7 +2351,7 @@ const SCEV *ScalarEvolution::getSCEV(Value *V) {
|
||||
|
||||
/// getIntegerSCEV - Given a SCEVable type, create a constant for the
|
||||
/// specified signed integer value and return a SCEV for the constant.
|
||||
const SCEV *ScalarEvolution::getIntegerSCEV(int Val, const Type *Ty) {
|
||||
const SCEV *ScalarEvolution::getIntegerSCEV(int64_t Val, const Type *Ty) {
|
||||
const IntegerType *ITy = cast<IntegerType>(getEffectiveSCEVType(Ty));
|
||||
return getConstant(ConstantInt::get(ITy, Val));
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user