-
Notifications
You must be signed in to change notification settings - Fork 14.3k
[ARM] musttail fixes #102896
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Closed
Closed
[ARM] musttail fixes #102896
Changes from all commits
Commits
Show all changes
7 commits
Select commit
Hold shift + click to select a range
eb7551e
[ARM] musttail fixes
kiran-isaac 082c980
Seperate frontend changes, add debug directives, remove redundant stu…
kiran-isaac 12f6d09
Merge branch 'llvm:main' into musttail-main
kiran-isaac 78623ee
Remove byval change and incorrect/unnecessary edits to tests
kiran-isaac 6485913
Merge branch 'llvm:main' into musttail-main
kiran-isaac 8203061
remove extra check line
kiran-isaac 973303b
added large test case
kiran-isaac File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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,43 @@ | ||
; RUN: llc -mtriple=arm-eabi %s -o - | FileCheck %s | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Please generate checks with update_llc_test_checks.py |
||
|
||
; The repro example from https://github.com/llvm/llvm-project/issues/57069#issuecomment-1212754850 | ||
; Function Attrs: mustprogress nofree noinline norecurse nosync nounwind sspstrong willreturn memory(none) | ||
define hidden noundef i32 @many_args_callee(i32 noundef %0, i32 noundef %1, i32 noundef %2, i32 noundef %3, i32 noundef %4, i32 noundef %5) local_unnamed_addr #0 { | ||
%7 = add nsw i32 %1, %0 | ||
%8 = add nsw i32 %7, %2 | ||
%9 = add nsw i32 %8, %3 | ||
%10 = add nsw i32 %9, %4 | ||
%11 = add nsw i32 %10, %5 | ||
ret i32 %11 | ||
} | ||
|
||
; Function Attrs: mustprogress nofree norecurse nosync nounwind sspstrong willreturn memory(none) | ||
define hidden noundef i32 @many_args(i32 noundef %0, i32 noundef %1, i32 noundef %2, i32 noundef %3, i32 noundef %4, i32 noundef %5) local_unnamed_addr #1 { | ||
; CHECK: b many_args_callee | ||
%7 = musttail call noundef i32 @many_args_callee(i32 noundef 1, i32 noundef 2, i32 noundef 3, i32 noundef 4, i32 noundef 5, i32 noundef 6) | ||
ret i32 %7 | ||
} | ||
|
||
; Test with sret | ||
; Function Attrs: optsize | ||
declare dso_local void @sret_callee(ptr dead_on_unwind writable sret({ double, double }) align 8, i16 noundef signext) local_unnamed_addr #1 | ||
|
||
; Function Attrs: mustprogress optsize | ||
define dso_local void @sret_caller(ptr dead_on_unwind noalias writable sret({ double, double }) align 8 %agg.result, i16 noundef signext %P0) local_unnamed_addr #0 { | ||
entry: | ||
; CHECK: b sret_callee | ||
musttail call void @sret_callee(ptr dead_on_unwind writable sret({ double, double }) align 8 %agg.result, i16 noundef signext 20391) #2 | ||
ret void | ||
} | ||
|
||
%struct.Large = type { [60 x i32] } | ||
|
||
; Function Attrs: mustprogress noinline optnone | ||
define dso_local void @large_caller(i64 noundef %0, i64 noundef %1, %struct.Large* noundef byval(%struct.Large) align 4 %2, %struct.Large* noundef byval(%struct.Large) align 4 %3) #0 { | ||
entry: | ||
; CHECK: b large_callee | ||
musttail call void @large_callee(i64 noundef %0, i64 noundef %1, %struct.Large* noundef byval(%struct.Large) align 4 %2, %struct.Large* noundef byval(%struct.Large) align 4 %3) | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Please add tests for both "%0, %1, %2, %3" and "%0, %1, %3, %2". |
||
ret void | ||
} | ||
|
||
declare dso_local void @large_callee(i64 noundef, i64 noundef, %struct.Large* noundef byval(%struct.Large) align 4, %struct.Large* noundef byval(%struct.Large) align 4) #1 |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.