[PATCH] D126392: [RISCV] Use two ADDIs to do some stack pointer adjustments.

Craig Topper via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed May 25 13:12:49 PDT 2022


craig.topper updated this revision to Diff 432101.
craig.topper added a comment.

Instead of dividing in half use a large immediate, either -2048 or (2048-stackalign),
to do a first adjustment. Then a smaller adjustment for the remainder.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D126392/new/

https://reviews.llvm.org/D126392

Files:
  llvm/lib/Target/RISCV/RISCVFrameLowering.cpp
  llvm/test/CodeGen/RISCV/rvv/emergency-slot.mir
  llvm/test/CodeGen/RISCV/rvv/large-rvv-stack-size.mir
  llvm/test/CodeGen/RISCV/stack-realignment.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D126392.432101.patch
Type: text/x-patch
Size: 5438 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20220525/06aac1cd/attachment.bin>


More information about the llvm-commits mailing list