[PATCH] D158492: [RISCV] Add CSR RegisterClass and save/restore fcsr in interrupt
Wang Pengcheng via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu Oct 12 23:34:34 PDT 2023
wangpc added inline comments.
================
Comment at: llvm/lib/Target/RISCV/RISCVInstrInfo.cpp:553
+ SrcReg = RISCV::X5;
+ }
} else if (RISCV::GPRPF64RegClass.hasSubClassEq(RC)) {
----------------
zixuan-wu wrote:
> Probably it can refer to SPILL_CR like Pseudo in PPC target. Just use Pseudo here and expand later in eliminateFrameIndex where introduce internal virtual GPR, then it would be scavenged later
Thanks, I'll have a try!
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D158492/new/
https://reviews.llvm.org/D158492
More information about the llvm-commits
mailing list