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

Luke Lau via llvm-commits llvm-commits at lists.llvm.org
Tue May 7 20:28:35 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
----------------
lukel97 wrote:

Yeah, I'm not sure if the vsetvlis are that relevant to the test either. Opened #91428 to just use volatile loads and stores instead.

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


More information about the llvm-commits mailing list