[PATCH] D88699: [AArch64] Allow pairing lr with other GPRs for WinCFI

Martin Storsjö via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Oct 1 13:33:53 PDT 2020


mstorsjo created this revision.
mstorsjo added reviewers: efriedma, rnk, ssijaric, TomTan.
Herald added subscribers: danielkiss, hiraditya, kristof.beyls.
Herald added a project: LLVM.
mstorsjo requested review of this revision.

This saves one instruction per prologue/epilogue for any function with an odd number of callee-saved GPRs, but more importantly, allows such functions to match the packed unwind format.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D88699

Files:
  llvm/lib/Target/AArch64/AArch64AsmPrinter.cpp
  llvm/lib/Target/AArch64/AArch64FrameLowering.cpp
  llvm/test/CodeGen/AArch64/win64_vararg.ll
  llvm/test/CodeGen/AArch64/wineh-save-lrpair1.mir
  llvm/test/CodeGen/AArch64/wineh-save-lrpair2.mir

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D88699.295663.patch
Type: text/x-patch
Size: 9447 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20201001/e70fed7c/attachment.bin>


More information about the llvm-commits mailing list