[PATCH] D62686: [WIP][RISCV] Add support for save/restore of callee-saved registers via libcalls

Lewis Revill via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Jun 19 08:17:59 PDT 2019


lewis-revill updated this revision to Diff 205598.
lewis-revill added a comment.

Rebased to incorporate the recent CFI additions.

Thanks for the suggestions Ed, I added the test for arguments passed on the stack (many_args), and it exposed a bug whereby I disabled save/restore incorrectly for that function. I've changed the enable/disable logic to just simply check for the presence of var args, and now this case works.


Repository:
  rL LLVM

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

https://reviews.llvm.org/D62686

Files:
  lib/Target/RISCV/CMakeLists.txt
  lib/Target/RISCV/RISCVFrameLowering.cpp
  lib/Target/RISCV/RISCVFrameLowering.h
  lib/Target/RISCV/RISCVMachineFunctionInfo.cpp
  lib/Target/RISCV/RISCVMachineFunctionInfo.h
  lib/Target/RISCV/RISCVRegisterInfo.cpp
  lib/Target/RISCV/RISCVRegisterInfo.h
  test/CodeGen/RISCV/saverestore.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D62686.205598.patch
Type: text/x-patch
Size: 31192 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20190619/da762096/attachment.bin>


More information about the llvm-commits mailing list