-
Notifications
You must be signed in to change notification settings - Fork 14.3k
[RISCV][VLOPT] Enable the RISCVVLOptimizer by default #119461
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 | ||
---|---|---|---|---|
|
@@ -97,8 +97,9 @@ define <4 x i32> @v4i32_v8i32(<8 x i32>) { | |||
define <4 x i32> @v4i32_v16i32(<16 x i32>) { | ||||
; RV32-LABEL: v4i32_v16i32: | ||||
; RV32: # %bb.0: | ||||
; RV32-NEXT: vsetivli zero, 8, e16, m1, ta, ma | ||||
; RV32-NEXT: vsetivli zero, 2, e16, m1, ta, ma | ||||
; RV32-NEXT: vmv.v.i v12, 1 | ||||
; RV32-NEXT: vsetivli zero, 8, e16, m1, ta, ma | ||||
; RV32-NEXT: vmv.v.i v14, 6 | ||||
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. Do we know why only one of the vmv.v.is had their VL reduced here? Edit, just seeing Philip's comment above that explains it. 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. Take a look at the MIR: https://godbolt.org/z/xrvG13qx6 You can see that
|
||||
; RV32-NEXT: li a0, 32 | ||||
; RV32-NEXT: vmv.v.i v0, 10 | ||||
|
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.
Non blocking, but this shows a case where we probably want to teach VSETVLI insertion that it can increase VL if the instruction is tail undefined.