[llvm] [RISCV] Remove implicit $vl def on vleNff pseudos (PR #143935)

Min-Yih Hsu via llvm-commits llvm-commits at lists.llvm.org
Thu Jun 12 11:37:44 PDT 2025


================
@@ -3016,12 +3016,9 @@ entry:
   ret void
 }
 
-; Test with both outputs dead. Make sure the vleff isn't deleted.
 define void @intrinsic_vleff_dead_all(ptr %0, iXLen %1, ptr %2) nounwind {
 ; CHECK-LABEL: intrinsic_vleff_dead_all:
 ; CHECK:       # %bb.0: # %entry
-; CHECK-NEXT:    vsetvli zero, a1, e64, m1, ta, ma
----------------
mshockwave wrote:

I couldn't think of any side effect other than VL update (which, in this case, is dead) that would prevent this instruction from being removed by dead machine instruction elimination fairly in the pipeline. So I  _think_ this is correct.

https://github.com/llvm/llvm-project/pull/143935


More information about the llvm-commits mailing list