[PATCH] D77838: [AArch64][GlobalISel] CallLowering: Don't generate new copies each time we need to store to a stack location for outgoing args.

Amara Emerson via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Apr 9 16:21:33 PDT 2020


aemerson created this revision.
aemerson added a reviewer: paquette.
aemerson added a project: LLVM.
Herald added subscribers: danielkiss, hiraditya, kristof.beyls, rovka.

[AArch64][GlobalISel] CallLowering: Don't generate new copies each time we need to store to a stack location for outgoing args.

During call arg lowering we shouldn't be modifying SP so cache the SP copy vreg for subsequent uses.

Gives a 0.2% geomean code size improvement on CTMark.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D77838

Files:
  llvm/lib/Target/AArch64/AArch64CallLowering.cpp
  llvm/test/CodeGen/AArch64/GlobalISel/call-translator-cse.ll
  llvm/test/CodeGen/AArch64/GlobalISel/call-translator-ios.ll
  llvm/test/CodeGen/AArch64/GlobalISel/call-translator.ll
  llvm/test/CodeGen/AArch64/GlobalISel/irtranslator-exceptions.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D77838.256439.patch
Type: text/x-patch
Size: 4978 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200409/50b60c82/attachment.bin>


More information about the llvm-commits mailing list