-
Notifications
You must be signed in to change notification settings - Fork 15.4k
[RegAlloc] Sort CopyHint by IsCSR #131046
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
Changes from 3 commits
a567100
78dc8f8
0d0ad25
25deaf7
6ef87cd
76f0138
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,22 @@ | ||
| # NOTE: Assertions have been autogenerated by utils/update_mir_test_checks.py UTC_ARGS: --version 5 | ||
| # RUN: llc -mtriple=arm64-eabi -mattr=v8.3a \ -stop-after=virtregmap -o - %s | FileCheck %s | ||
|
|
||
| --- | ||
| name: ra0 | ||
| tracksRegLiveness: true | ||
| isSSA: true | ||
| body: | | ||
| bb.0.entry: | ||
| liveins: $lr | ||
|
|
||
| ; CHECK-LABEL: name: ra0 | ||
| ; CHECK: liveins: $lr | ||
| ; CHECK-NEXT: {{ $}} | ||
| ; CHECK-NEXT: $x0 = ORRXrs $xzr, $lr, 0 | ||
| ; CHECK-NEXT: renamable $x0 = XPACI killed renamable $x0 | ||
| ; CHECK-NEXT: RET undef $lr, implicit killed $x0 | ||
| %0:gpr64 = COPY killed $lr | ||
| %1:gpr64 = XPACI killed %0 | ||
| $x0 = COPY killed %1 | ||
|
Contributor
Author
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. @arsenm how is this? |
||
| RET_ReallyLR implicit killed $x0 | ||
| ... | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,30 @@ | ||
| # NOTE: Assertions have been autogenerated by utils/update_mir_test_checks.py UTC_ARGS: --version 5 | ||
| # RUN: llc %s -passes=greedy -mtriple=aarch64 | FileCheck %s | ||
|
|
||
| --- | ||
| name: ra0 | ||
| tracksRegLiveness: true | ||
| noPhis: true | ||
| liveins: | ||
| - { reg: '$lr', virtual-reg: '%0' } | ||
| body: | | ||
| bb.0.entry: | ||
| liveins: $lr | ||
|
|
||
| ; CHECK-LABEL: name: ra0 | ||
| ; CHECK: liveins: $lr | ||
| ; CHECK-NEXT: {{ $}} | ||
| ; CHECK-NEXT: [[COPY:%[0-9]+]]:gpr64 = COPY $lr | ||
| ; CHECK-NEXT: $lr = COPY [[COPY]] | ||
| ; CHECK-NEXT: XPACLRI implicit-def $lr, implicit $lr | ||
| ; CHECK-NEXT: [[COPY1:%[0-9]+]]:gpr64all = COPY $lr | ||
| ; CHECK-NEXT: $x0 = COPY [[COPY1]] | ||
| ; CHECK-NEXT: RET_ReallyLR implicit $x0 | ||
| %0:gpr64 = COPY $lr | ||
| $lr = COPY %0 | ||
| XPACLRI implicit-def $lr, implicit $lr | ||
| %1:gpr64all = COPY $lr | ||
| $x0 = COPY %1 | ||
| RET_ReallyLR implicit killed $x0 | ||
|
|
||
| ... |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -60,7 +60,7 @@ entry: | |
| ;CHECK: sethi | ||
| ;CHECK: !NO_APP | ||
| ;CHECK-NEXT: ble | ||
| ;CHECK-NEXT: mov | ||
| ;CHECK-NEXT: nop | ||
|
||
| tail call void asm sideeffect "sethi 0, %g0", ""() nounwind | ||
| %0 = icmp slt i32 %a, 0 | ||
| br i1 %0, label %bb, label %bb1 | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm not sure what this run line does, but it probably should be an error. What is the starting point?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sorry, that was an artifact I forgot to remove when I had the run line on multiple lines. Removed