[llvm] [RISCV][llvm] Select splat_vector(constant) with PLI (PR #168204)

Brandon Wu via llvm-commits llvm-commits at lists.llvm.org
Sun Nov 16 22:04:23 PST 2025


================
@@ -525,7 +525,7 @@ RISCVTargetLowering::RISCVTargetLowering(const TargetMachine &TM,
     setOperationAction(ISD::SSUBSAT, VTs, Legal);
     setOperationAction({ISD::AVGFLOORS, ISD::AVGFLOORU}, VTs, Legal);
     setOperationAction({ISD::ABDS, ISD::ABDU}, VTs, Legal);
-    setOperationAction(ISD::BUILD_VECTOR, VTs, Custom);
+    setOperationAction(ISD::SPLAT_VECTOR, VTs, Legal);
----------------
4vtomat wrote:

Does it mean theoretically we should handle both const and non-const case when we set the operation to custom?

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


More information about the llvm-commits mailing list