Skip to content

Commit 69e7405

Browse files
Update after the change to not always set FrameSetup flags
1 parent a8d8c34 commit 69e7405

File tree

2 files changed

+15
-1
lines changed

2 files changed

+15
-1
lines changed

llvm/lib/Target/AArch64/AArch64ISelLowering.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2726,7 +2726,7 @@ AArch64TargetLowering::EmitDynamicProbedAlloc(MachineInstr &MI,
27262726
const AArch64InstrInfo &TII =
27272727
*MF.getSubtarget<AArch64Subtarget>().getInstrInfo();
27282728
Register TargetReg = MI.getOperand(0).getReg();
2729-
MachineBasicBlock::iterator NextInst = TII.probedStackAlloc(MBBI, TargetReg);
2729+
MachineBasicBlock::iterator NextInst = TII.probedStackAlloc(MBBI, TargetReg, false);
27302730

27312731
MI.eraseFromParent();
27322732
return NextInst->getParent();
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
; RUN: llc --stop-after=finalize-isel -o - | FileCheck %s
2+
target triple = "aarch64-linux"
3+
4+
; Check dynamic stack allocation and probing instructions do not have
5+
; the FrameSetup flag.
6+
7+
; CHECK-NOT: frame-setup
8+
define void @no_frame_setup(i64 %size, ptr %out) #0 {
9+
%v = alloca i8, i64 %size, align 1
10+
store ptr %v, ptr %out, align 8
11+
ret void
12+
}
13+
14+
attributes #0 = { uwtable(async) "probe-stack"="inline-asm" "frame-pointer"="none" }

0 commit comments

Comments
 (0)