[PATCH] D130560: [RISCV] Handle register spill in branch relaxation
Piggy via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Tue Jul 26 20:29:09 PDT 2022
piggynl updated this revision to Diff 447918.
piggynl added a comment.
- More conservative estimate for branches in `EstimateFunctionSizeInBytes`.
- Remove the size of constants and jump tables in `EstimateFunctionSizeInBytes`.
- Add the new stack frame index to `RS` in `RISCVFrameLowering::processFunctionBeforeFrameFinalized`.
- Use `report_fatal_error` in `RISCVInstrInfo::insertIndirectBranch` if function size is underestimated.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D130560/new/
https://reviews.llvm.org/D130560
Files:
llvm/lib/Target/RISCV/RISCVFrameLowering.cpp
llvm/lib/Target/RISCV/RISCVInstrInfo.cpp
llvm/lib/Target/RISCV/RISCVMachineFunctionInfo.h
llvm/test/CodeGen/RISCV/branch-relaxation-spill-32.ll
llvm/test/CodeGen/RISCV/branch-relaxation-spill-64.ll
llvm/test/CodeGen/RISCV/branch-relaxation.ll
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D130560.447918.patch
Type: text/x-patch
Size: 30724 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20220727/96a6faee/attachment.bin>
More information about the llvm-commits
mailing list