[PATCH] D147608: [RISCV] Lower scalar_to_vector

Craig Topper via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Apr 5 15:55:47 PDT 2023


craig.topper added inline comments.


================
Comment at: llvm/lib/Target/RISCV/RISCVISelLowering.cpp:4116
+    if (Scalar.getValueType().isInteger())
+      Scalar = DAG.getZExtOrTrunc(Scalar, DL, Subtarget.getXLenVT());
+    SDValue V = DAG.getNode(RISCVISD::VMV_S_X_VL, DL, ContainerVT,
----------------
Why wouldn't the scalar already be XLenVT?


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D147608/new/

https://reviews.llvm.org/D147608



More information about the llvm-commits mailing list