|
@@ -3368,7 +3368,7 @@ int llvm::isAArch64FrameOffsetLegal(const MachineInstr &MI,
|
|
|
StackOffset &SOffset,
|
|
|
bool *OutUseUnscaledOp,
|
|
|
unsigned *OutUnscaledOp,
|
|
|
- int *EmittableOffset) {
|
|
|
+ int64_t *EmittableOffset) {
|
|
|
// Set output values in case of early exit.
|
|
|
if (EmittableOffset)
|
|
|
*EmittableOffset = 0;
|
|
@@ -3430,7 +3430,7 @@ int llvm::isAArch64FrameOffsetLegal(const MachineInstr &MI,
|
|
|
"Cannot have remainder when using unscaled op");
|
|
|
|
|
|
assert(MinOff < MaxOff && "Unexpected Min/Max offsets");
|
|
|
- int NewOffset = Offset / Scale;
|
|
|
+ int64_t NewOffset = Offset / Scale;
|
|
|
if (MinOff <= NewOffset && NewOffset <= MaxOff)
|
|
|
Offset = Remainder;
|
|
|
else {
|
|
@@ -3471,7 +3471,7 @@ bool llvm::rewriteAArch64FrameIndex(MachineInstr &MI, unsigned FrameRegIdx,
|
|
|
return true;
|
|
|
}
|
|
|
|
|
|
- int NewOffset;
|
|
|
+ int64_t NewOffset;
|
|
|
unsigned UnscaledOp;
|
|
|
bool UseUnscaledOp;
|
|
|
int Status = isAArch64FrameOffsetLegal(MI, Offset, &UseUnscaledOp,
|