[PATCH] D149743: [RISCV][CodeGen] Support Zdinx on RV32 codegen

Jessica Clarke via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu May 11 20:24:13 PDT 2023


jrtc27 added inline comments.


================
Comment at: llvm/lib/Target/RISCV/RISCVExpandPseudoInsts.cpp:350
+          .addImm(MBBI->getOperand(2).getImm());
+      BuildMI(MBB, MBBI, DL, TII->get(RISCV::ADDI), TmpReg)
+          .addReg(TmpReg)
----------------
StephenFan wrote:
> if MBBI->getOperand(1).isKill() is true, maybe we don't need to add back -4?
This is just silly; expand it during ISel and let the register allocator figure out if it can reuse the register or needs to allocate an extra one


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D149743



More information about the llvm-commits mailing list