[llvm] [RISCV][GISel] Replace buildInstr with BuildMI (PR #183714)

Jianjian Guan via llvm-commits llvm-commits at lists.llvm.org
Mon Mar 2 23:29:23 PST 2026


================
@@ -788,7 +787,10 @@ bool RISCVInstructionSelector::selectIntrinsicWithSideEffects(
         RISCV::getVLEPseudo(IsMasked, IsStrided, /*FF*/ false, Log2SEW,
                             static_cast<unsigned>(LMUL));
 
-    auto PseudoMI = MIB.buildInstr(P->Pseudo, {DstReg}, SrcOps);
+    MachineInstrBuilder PseudoMI =
+        BuildMI(*I.getParent(), I, I.getDebugLoc(), TII.get(P->Pseudo), DstReg);
+    for (const auto &SrcOp : SrcOps)
+      SrcOp.addSrcToMIB(PseudoMI);
----------------
jacquesguan wrote:

Changed to Register.

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


More information about the llvm-commits mailing list