Skip to content

Commit e535e1b

Browse files
committed
Rebase
Change-Id: Ib3f326067beb8506eec3d17424ee63d5f6847782
1 parent ec899ac commit e535e1b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

llvm/lib/Target/AArch64/AArch64FrameLowering.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -335,7 +335,7 @@ static Register findScratchNonCalleeSaveRegister(MachineBasicBlock *MBB,
335335
bool HasCall = false);
336336
static bool requiresSaveVG(const MachineFunction &MF);
337337

338-
// Conservatively, returns true if the function is likely to have an SVE vectors
338+
// Conservatively, returns true if the function is likely to have SVE vectors
339339
// on the stack. This function is safe to be called before callee-saves or
340340
// object offsets have been determined.
341341
static bool isLikelyToHaveSVEStack(MachineFunction &MF) {
@@ -348,7 +348,7 @@ static bool isLikelyToHaveSVEStack(MachineFunction &MF) {
348348

349349
const MachineFrameInfo &MFI = MF.getFrameInfo();
350350
for (int FI = MFI.getObjectIndexBegin(); FI < MFI.getObjectIndexEnd(); FI++) {
351-
if (MFI.getStackID(FI) == TargetStackID::ScalableVector)
351+
if (MFI.isScalableStackID(FI))
352352
return true;
353353
}
354354

0 commit comments

Comments
 (0)