[PATCH] D151653: [WIP][RISCV] Combine vmv.s.x of constants into vmv.v.i

Wang Pengcheng via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon May 29 19:59:09 PDT 2023


pcwang-thead added inline comments.


================
Comment at: llvm/lib/Target/RISCV/RISCVISelLowering.cpp:12348
+    // fits into the OPIVI format.
+    if (N->getOperand(0).isUndef() && isa<ConstantSDNode>(N->getOperand(1))) {
+      uint64_t C = N->getConstantOperandVal(1);
----------------
We may need to limit it to `LMUL<=1` in order not to increase register pressure.

Similar patches:  D139656 and its related patches.


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D151653



More information about the llvm-commits mailing list