[PATCH] D43752: [RISCV] Preserve stack space for outgoing arguments when the function contain variable size objects

Shiva Chen via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Mar 1 18:50:17 PST 2018


shiva0217 updated this revision to Diff 136666.
shiva0217 edited the summary of this revision.
shiva0217 added a comment.

Hi Alex. Default hasReservedCallFrame will return !hasFP(), so these cases will generate extra sp adjustment, we could override hasReservedCallFrame as !hasVarSizedObjects() to avoid this and thanks for update the test case which make it more clean and clear!


Repository:
  rL LLVM

https://reviews.llvm.org/D43752

Files:
  lib/Target/RISCV/RISCVFrameLowering.cpp
  lib/Target/RISCV/RISCVFrameLowering.h
  test/CodeGen/RISCV/alloca.ll
  test/CodeGen/RISCV/calling-conv.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D43752.136666.patch
Type: text/x-patch
Size: 5606 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20180302/8f429de0/attachment.bin>


More information about the llvm-commits mailing list