[PATCH] D98802: [RISCV][WIP] Fix offset computation for RVV

Roger Ferrer Ibanez via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Mar 18 07:01:04 PDT 2021


rogfer01 updated this revision to Diff 331546.
rogfer01 edited the summary of this revision.
rogfer01 added a comment.

ChangeLog:

- Add extra padding so we can adjust RVV objects within the stack correctly
- Round the offset to the RVV objects to 8 bytes (when not using `fp`).
- Move computation of `CalleeSavedStackSize` from `processFunctionBeforeFrameIndicesReplaced` to `processFunctionBeforeFrameFinalized` because we need that size before we emit the prologue.


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

https://reviews.llvm.org/D98802

Files:
  llvm/lib/Target/RISCV/RISCVFrameLowering.cpp
  llvm/lib/Target/RISCV/RISCVFrameLowering.h
  llvm/test/CodeGen/RISCV/rvv/localvar.ll
  llvm/test/CodeGen/RISCV/rvv/rv32-spill-vector-csr.ll
  llvm/test/CodeGen/RISCV/rvv/rv64-spill-vector-csr.ll
  llvm/test/CodeGen/RISCV/rvv/rvv-framelayout.ll
  llvm/test/CodeGen/RISCV/rvv/wrong-stack-slot-rv32.mir
  llvm/test/CodeGen/RISCV/rvv/wrong-stack-slot-rv64.mir

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D98802.331546.patch
Type: text/x-patch
Size: 14001 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20210318/a775fb3f/attachment.bin>


More information about the llvm-commits mailing list