[llvm] [LoongArch] lower SCALAR_TO_VECTOR to INSERT_VECTOR_ELT (PR #122863)

Lu Weining via llvm-commits llvm-commits at lists.llvm.org
Thu Jan 16 04:28:54 PST 2025


================
@@ -255,6 +255,7 @@ LoongArchTargetLowering::LoongArchTargetLowering(const TargetMachine &TM,
       setOperationAction(ISD::SETCC, VT, Legal);
       setOperationAction(ISD::VSELECT, VT, Legal);
       setOperationAction(ISD::VECTOR_SHUFFLE, VT, Custom);
+      setOperationAction(ISD::SCALAR_TO_VECTOR, VT, Custom);
----------------
SixWeining wrote:

Why not make it `Legal` and define patterns in .td files.

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


More information about the llvm-commits mailing list