@@ -327,7 +327,8 @@ static int64_t getArgumentStackToRestore(MachineFunction &MF,
327
327
static bool produceCompactUnwindFrame (MachineFunction &MF);
328
328
static bool needsWinCFI (const MachineFunction &MF);
329
329
static StackOffset getSVEStackSize (const MachineFunction &MF);
330
- static Register findScratchNonCalleeSaveRegister (MachineBasicBlock *MBB, bool HasCall=false );
330
+ static Register findScratchNonCalleeSaveRegister (MachineBasicBlock *MBB,
331
+ bool HasCall = false );
331
332
static bool requiresSaveVG (const MachineFunction &MF);
332
333
333
334
// / Returns true if a homogeneous prolog or epilog code can be emitted
@@ -1034,7 +1035,8 @@ static void getLiveRegsForEntryMBB(LivePhysRegs &LiveRegs,
1034
1035
// but we would then have to make sure that we were in fact saving at least one
1035
1036
// callee-save register in the prologue, which is additional complexity that
1036
1037
// doesn't seem worth the benefit.
1037
- static Register findScratchNonCalleeSaveRegister (MachineBasicBlock *MBB, bool HasCall) {
1038
+ static Register findScratchNonCalleeSaveRegister (MachineBasicBlock *MBB,
1039
+ bool HasCall) {
1038
1040
MachineFunction *MF = MBB->getParent ();
1039
1041
1040
1042
// If MBB is an entry block, use X9 as the scratch register
@@ -1097,8 +1099,10 @@ bool AArch64FrameLowering::canUseAsPrologue(
1097
1099
if (findScratchNonCalleeSaveRegister (TmpMBB) == AArch64::NoRegister)
1098
1100
return false ;
1099
1101
1100
- // May need a scratch register (for return value) if require making a special call
1101
- if (requiresSaveVG (*MF) || windowsRequiresStackProbe (*MF, std::numeric_limits<uint64_t >::max ()))
1102
+ // May need a scratch register (for return value) if require making a special
1103
+ // call
1104
+ if (requiresSaveVG (*MF) ||
1105
+ windowsRequiresStackProbe (*MF, std::numeric_limits<uint64_t >::max ()))
1102
1106
if (findScratchNonCalleeSaveRegister (TmpMBB, true ) == AArch64::NoRegister)
1103
1107
return false ;
1104
1108
@@ -2001,7 +2005,8 @@ void AArch64FrameLowering::emitPrologue(MachineFunction &MF,
2001
2005
AArch64::X15, LiveIn.PhysReg );
2002
2006
})) {
2003
2007
X15Scratch = findScratchNonCalleeSaveRegister (&MBB, true );
2004
- assert (X15Scratch != AArch64::NoRegister && (X15Scratch < AArch64::X15 || X15Scratch > AArch64::X17));
2008
+ assert (X15Scratch != AArch64::NoRegister &&
2009
+ (X15Scratch < AArch64::X15 || X15Scratch > AArch64::X17));
2005
2010
#ifndef NDEBUG
2006
2011
LiveRegs.removeReg (AArch64::X15); // ignore X15 since we restore it
2007
2012
#endif
0 commit comments