Skip to content

Commit 27c221c

Browse files
committed
clang-format
1 parent 0a07ba2 commit 27c221c

File tree

1 file changed

+10
-5
lines changed

1 file changed

+10
-5
lines changed

llvm/lib/Target/AArch64/AArch64FrameLowering.cpp

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -327,7 +327,8 @@ static int64_t getArgumentStackToRestore(MachineFunction &MF,
327327
static bool produceCompactUnwindFrame(MachineFunction &MF);
328328
static bool needsWinCFI(const MachineFunction &MF);
329329
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);
331332
static bool requiresSaveVG(const MachineFunction &MF);
332333

333334
/// Returns true if a homogeneous prolog or epilog code can be emitted
@@ -1034,7 +1035,8 @@ static void getLiveRegsForEntryMBB(LivePhysRegs &LiveRegs,
10341035
// but we would then have to make sure that we were in fact saving at least one
10351036
// callee-save register in the prologue, which is additional complexity that
10361037
// doesn't seem worth the benefit.
1037-
static Register findScratchNonCalleeSaveRegister(MachineBasicBlock *MBB, bool HasCall) {
1038+
static Register findScratchNonCalleeSaveRegister(MachineBasicBlock *MBB,
1039+
bool HasCall) {
10381040
MachineFunction *MF = MBB->getParent();
10391041

10401042
// If MBB is an entry block, use X9 as the scratch register
@@ -1097,8 +1099,10 @@ bool AArch64FrameLowering::canUseAsPrologue(
10971099
if (findScratchNonCalleeSaveRegister(TmpMBB) == AArch64::NoRegister)
10981100
return false;
10991101

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()))
11021106
if (findScratchNonCalleeSaveRegister(TmpMBB, true) == AArch64::NoRegister)
11031107
return false;
11041108

@@ -2001,7 +2005,8 @@ void AArch64FrameLowering::emitPrologue(MachineFunction &MF,
20012005
AArch64::X15, LiveIn.PhysReg);
20022006
})) {
20032007
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));
20052010
#ifndef NDEBUG
20062011
LiveRegs.removeReg(AArch64::X15); // ignore X15 since we restore it
20072012
#endif

0 commit comments

Comments
 (0)