[llvm] [RISCV][VLOPT] Compute demanded VLs up front (PR #124530)
Philip Reames via llvm-commits
llvm-commits at lists.llvm.org
Tue Jan 28 10:44:18 PST 2025
================
@@ -12,9 +12,11 @@ body: |
; CHECK-NEXT: %vl:gprnox0 = COPY $x1
; CHECK-NEXT: %x:vr = PseudoVADD_VV_MF4 $noreg, $noreg, $noreg, -1, 4 /* e16 */, 0 /* tu, mu */
; CHECK-NEXT: %y:vr = PseudoVNSRL_WV_MF4 $noreg, %x, $noreg, %vl, 4 /* e16 */, 0 /* tu, mu */
+ ; CHECK-NEXT: $v8 = COPY %y
%vl:gprnox0 = COPY $x1
%x:vr = PseudoVADD_VV_MF4 $noreg, $noreg, $noreg, -1, 4 /* e16 */, 0 /* tu, mu */
%y:vr = PseudoVNSRL_WV_MF4 $noreg, %x, $noreg, %vl, 4 /* e16 */, 0 /* tu, mu */
+ $v8 = COPY %y
----------------
preames wrote:
I don't think these copies are required now, are there? Adding them is a reasonable thing to do, I'm just confirming this change doesn't need them any more for my own understanding. If so, please separate this into it's own review.
https://github.com/llvm/llvm-project/pull/124530
More information about the llvm-commits
mailing list