-
Notifications
You must be signed in to change notification settings - Fork 15k
[DAG] Remove OneUse restriction on sext when folding (shl (sext (add_nsw x, c1)), c2) #68972
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 all commits
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 |
|---|---|---|
|
|
@@ -21,10 +21,11 @@ define i32 @PR65895() { | |
| ; CHECK-NEXT: # =>This Inner Loop Header: Depth=1 | ||
| ; CHECK-NEXT: jmp .LBB0_2 | ||
| ; CHECK-NEXT: .LBB0_3: # %for.end | ||
| ; CHECK-NEXT: movzbl %al, %ecx | ||
| ; CHECK-NEXT: addb $-3, %al | ||
| ; CHECK-NEXT: movsbl %al, %eax | ||
| ; CHECK-NEXT: movl %eax, d(%rip) | ||
| ; CHECK-NEXT: leal 247(%rax,%rax,2), %eax | ||
| ; CHECK-NEXT: leal 241(%rax,%rcx,2), %eax | ||
|
||
| ; CHECK-NEXT: movb $1, c(%rip) | ||
| ; CHECK-NEXT: movsbq %al, %rax | ||
| ; CHECK-NEXT: movq %rax, e(%rip) | ||
|
|
||
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.
To address this can you add the OneUse checks back to the x86 version of
isDesirableToCommuteWithShift?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.
done