[llvm] [RISCV] Remove hasSideEffects=1 for vsetvli pseudos (PR #91319)

Craig Topper via llvm-commits llvm-commits at lists.llvm.org
Tue May 7 09:33:53 PDT 2024


================
@@ -14,16 +14,12 @@ declare <vscale x 1 x double> @llvm.riscv.vfmv.v.f.nxv1f64(<vscale x 1 x double>
 define <vscale x 1 x half> @intrinsic_vfmv.f.s_s_nxv1f16(<vscale x 1 x half> %0, i64 %1) nounwind {
 ; CHECK-LABEL: intrinsic_vfmv.f.s_s_nxv1f16:
 ; CHECK:       # %bb.0: # %entry
-; CHECK-NEXT:    addi sp, sp, -16
 ; CHECK-NEXT:    vsetivli zero, 1, e16, mf4, ta, ma
 ; CHECK-NEXT:    vfmv.f.s fa5, v8
-; CHECK-NEXT:    fsh fa5, 14(sp) # 2-byte Folded Spill
----------------
topperc wrote:

We lost the spill. The title of the test says "spill". So I guess we aren't testing the right thing anymore?

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


More information about the llvm-commits mailing list