[PATCH] D156407: [RISCV] Use max pushed register to get pushed register number.
Jim Lin via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu Jul 27 18:30:22 PDT 2023
Jim added inline comments.
================
Comment at: llvm/lib/Target/RISCV/RISCVFrameLowering.cpp:1323
+ Register MaxReg = getMaxPushPopReg(*MF, CSI);
+ unsigned PushPopRegs =
+ getPushPopEncoding(MaxReg) - llvm::RISCVZC::RLISTENCODE::RA + 1;
----------------
Should we ues PushPopNumRegs?
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D156407/new/
https://reviews.llvm.org/D156407
More information about the llvm-commits
mailing list