[PATCH] D135895: [RISCV] Limit alignment of stack temporary used for indirect passing of scalable vectors.

Craig Topper via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Oct 13 10:32:50 PDT 2022


craig.topper created this revision.
craig.topper added reviewers: reames, frasercrmck, rogfer01, kito-cheng, arcbbb.
Herald added subscribers: sunshaoce, VincentWu, StephenFan, vkmr, evandro, luismarques, apazos, sameer.abuasal, s.egerton, Jim, benna, psnobl, jocewei, PkmX, the_o, brucehoult, MartinMosbeck, edward-jones, zzheng, jrtc27, shiva0217, niosHD, sabuasal, simoncook, johnrusso, rbar, asb, hiraditya, arichardson.
Herald added a project: All.
craig.topper requested review of this revision.
Herald added subscribers: alextsao1999, pcwang-thead, eopXD, MaskRay.
Herald added a project: LLVM.

Don't align it more than the stack alignment. If we do, we'll need
to use a frame pointer to align the stack in prologue/epilogue emission.

Creating a stack temporary for a scalable vector doesn't update the
max alignment in MachineFrameInfo, so we won't know we need to align
the stack in time to reserve the FP register from register allocation.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D135895

Files:
  llvm/lib/Target/RISCV/RISCVISelLowering.cpp
  llvm/test/CodeGen/RISCV/rvv/calling-conv-fastcc.ll
  llvm/test/CodeGen/RISCV/rvv/calling-conv.ll
  llvm/test/CodeGen/RISCV/rvv/rvv-args-by-mem.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D135895.467528.patch
Type: text/x-patch
Size: 20786 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20221013/3ee72aa4/attachment.bin>


More information about the llvm-commits mailing list