-
Notifications
You must be signed in to change notification settings - Fork 14.5k
[RISCV] Handle LHS == 0 in isVLKnownLE #148860
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 |
---|---|---|
|
@@ -439,9 +439,10 @@ define <256 x i8> @vsadd_vi_v258i8_evl129(<256 x i8> %va, <256 x i1> %m) { | |
define <256 x i8> @vsadd_vi_v258i8_evl128(<256 x i8> %va, <256 x i1> %m) { | ||
; CHECK-LABEL: vsadd_vi_v258i8_evl128: | ||
; CHECK: # %bb.0: | ||
; CHECK-NEXT: li a1, 128 | ||
; CHECK-NEXT: vsetvli zero, a1, e8, m8, ta, ma | ||
; CHECK-NEXT: vsetivli zero, 0, e8, m8, ta, ma | ||
; CHECK-NEXT: vlm.v v24, (a0) | ||
; CHECK-NEXT: li a0, 128 | ||
; CHECK-NEXT: vsetvli zero, a0, e8, m8, ta, ma | ||
; CHECK-NEXT: vsadd.vi v8, v8, -1, v0.t | ||
; CHECK-NEXT: vmv1r.v v0, v24 | ||
; CHECK-NEXT: vsetivli zero, 0, e8, m8, 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. Just to highlight - this means we're missing a bunch of combines on the VP nodes. 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. Yeah, but I'm hoping that VP intrinsics with immediate EVLs are rare to begin with since they would need to be set to get.active.vector.length. And non trapping VP intrinsics in general, since the loop vectorizer doesn't emit them anymore! |
||
|
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.
Not related to this patch, but LHS being RISCV::VLMaxSentinel doesn't rule out RHS also being dynamically VLMax does it? So they could still be equal. Is it correct to return false here?
Uh oh!
There was an error while loading. Please reload this page.
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 returns whether or not it's known to be LE, so I think returning false should be conservatively correct. I.e returning false != not LE