Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Define behavior of "stack-probe-size" attribute when inlining.
Also document the attribute, since "probe-stack" already is. Reviewed By: majnemer Differential Revision: https://reviews.llvm.org/D34528 llvm-svn: 306069
- Loading branch information
1 parent
4b652a5
commit 08b2035
Showing
4 changed files
with
73 additions
and
2 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
; RUN: opt %s -inline -S | FileCheck %s | ||
|
||
define internal void @innerSmall() "stack-probe-size"="4096" { | ||
ret void | ||
} | ||
|
||
define internal void @innerLarge() "stack-probe-size"="8192" { | ||
ret void | ||
} | ||
|
||
define void @outerNoAttribute() { | ||
call void @innerSmall() | ||
ret void | ||
} | ||
|
||
define void @outerConflictingAttributeSmall() "stack-probe-size"="4096" { | ||
call void @innerLarge() | ||
ret void | ||
} | ||
|
||
define void @outerConflictingAttributeLarge() "stack-probe-size"="8192" { | ||
call void @innerSmall() | ||
ret void | ||
} | ||
|
||
; CHECK: define void @outerNoAttribute() #0 | ||
; CHECK: define void @outerConflictingAttributeSmall() #0 | ||
; CHECK: define void @outerConflictingAttributeLarge() #0 | ||
; CHECK: attributes #0 = { "stack-probe-size"="4096" } |