-
Notifications
You must be signed in to change notification settings - Fork 12.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[AArch64] Stack probing for dynamic allocas in SelectionDAG (#66525)
Add support for probing for dynamic allocas (variable-size objects and outgoing stack arguments). Co-authored-by: Oliver Stannard <[email protected]>
- Loading branch information
1 parent
a60a542
commit b1806e6
Showing
6 changed files
with
528 additions
and
57 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
14 changes: 14 additions & 0 deletions
14
llvm/test/CodeGen/AArch64/stack-probing-dynamic-no-frame-setup.ll
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
; RUN: llc --stop-after=finalize-isel -o - | FileCheck %s | ||
target triple = "aarch64-linux" | ||
|
||
; Check dynamic stack allocation and probing instructions do not have | ||
; the FrameSetup flag. | ||
|
||
; CHECK-NOT: frame-setup | ||
define void @no_frame_setup(i64 %size, ptr %out) #0 { | ||
%v = alloca i8, i64 %size, align 1 | ||
store ptr %v, ptr %out, align 8 | ||
ret void | ||
} | ||
|
||
attributes #0 = { uwtable(async) "probe-stack"="inline-asm" "frame-pointer"="none" } |
Oops, something went wrong.