-
Notifications
You must be signed in to change notification settings - Fork 13.7k
[RISCV] Unify vsetvli compatibility logic in forward and backwards passes #71657
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 |
---|---|---|
|
@@ -329,9 +329,9 @@ entry: | |
define double @test17(i64 %avl, <vscale x 1 x double> %a, <vscale x 1 x double> %b) nounwind { | ||
; CHECK-LABEL: test17: | ||
; CHECK: # %bb.0: # %entry | ||
; CHECK-NEXT: vsetvli a0, a0, e64, m1, ta, ma | ||
; CHECK-NEXT: vfmv.f.s fa5, v8 | ||
; CHECK-NEXT: vsetvli a0, a0, e32, mf2, ta, ma | ||
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. This case can be far more optimized I think. Only one 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. Would it need to be |
||
; CHECK-NEXT: vsetvli zero, a0, e64, m1, ta, ma | ||
; CHECK-NEXT: vfmv.f.s fa5, v8 | ||
; CHECK-NEXT: vfadd.vv v8, v8, v9 | ||
; CHECK-NEXT: vfmv.f.s fa4, v8 | ||
; CHECK-NEXT: fadd.d fa0, fa5, fa4 | ||
|
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.
This looks like it could have been pulled out into a separate patch but it has no effect on main, because we currently don't consider these cases as compatible