[PATCH] D130560: [RISCV] Handle register spill in branch relaxation
luxufan via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Tue Jul 26 21:08:01 PDT 2022
StephenFan added inline comments.
================
Comment at: llvm/lib/Target/RISCV/RISCVFrameLowering.cpp:1083
+ // To float or sink the frame index to close to the stack base register.
+ RS->addScavengingFrameIndex(FI);
+ }
----------------
If it would be better to add a test case that has a large stack and the offset of BranchRelaxationScratchFrameIndex is out of range of Int<12>(if it is not floated or sunk)?
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D130560/new/
https://reviews.llvm.org/D130560
More information about the llvm-commits
mailing list