Skip to content

Commit 3d92dc7

Browse files
committed
Update MFI in GlobalISel also
1 parent 73b8b8b commit 3d92dc7

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

llvm/lib/CodeGen/GlobalISel/InlineAsmLowering.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313

1414
#include "llvm/CodeGen/GlobalISel/InlineAsmLowering.h"
1515
#include "llvm/CodeGen/GlobalISel/MachineIRBuilder.h"
16+
#include "llvm/CodeGen/MachineFrameInfo.h"
1617
#include "llvm/CodeGen/MachineOperand.h"
1718
#include "llvm/CodeGen/MachineRegisterInfo.h"
1819
#include "llvm/CodeGen/TargetLowering.h"
@@ -602,6 +603,9 @@ bool InlineAsmLowering::lowerInlineAsm(
602603
}
603604
}
604605

606+
if (ExtraInfo.get() & InlineAsm::Extra_IsAlignStack)
607+
MF.getFrameInfo().setAdjustsStack(true);
608+
605609
return true;
606610
}
607611

0 commit comments

Comments
 (0)