[llvm] [RISCV] Add XSfmm pseudo instruction and vset* insertion support (PR #143068)

Brandon Wu via llvm-commits llvm-commits at lists.llvm.org
Thu Sep 25 05:52:34 PDT 2025


================
@@ -1671,6 +1780,10 @@ void RISCVInsertVSETVLI::coalesceVSETVLIs(MachineBasicBlock &MBB) const {
   };
 
   for (MachineInstr &MI : make_early_inc_range(reverse(MBB))) {
+    // TODO: Support XSfmm.
+    if (RISCVII::hasTWidenOp(MI.getDesc().TSFlags) ||
+        RISCVInstrInfo::isXSfmmVectorConfigInstr(MI))
+      continue;
----------------
4vtomat wrote:

Oh thanks for pointing out and yes xsfmm config will modify `vl` or `vtype`

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


More information about the llvm-commits mailing list