[PATCH] D149743: [RISCV][CodeGen] Support Zdinx on RV32 codegen
luxufan via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu May 11 22:12:21 PDT 2023
StephenFan 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)
----------------
jrtc27 wrote:
> jrtc27 wrote:
> > 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
> Also surely that would let the existing peephole passes work on optimising the simple expanded form into the more compact form when the immediate fits?
I agree with @jrtc27 that maybe we can try to custom lowering f64 load store during ISel.
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