[PATCH] D96099: [AArch64][GlobalISel] Support the 'returned' parameter attribute.

Amara Emerson via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Feb 4 19:45:38 PST 2021


aemerson created this revision.
aemerson added reviewers: paquette, arsenm, t.p.northover.
aemerson added a project: LLVM.
Herald added subscribers: danielkiss, hiraditya, kristof.beyls, rovka.
aemerson requested review of this revision.
Herald added a subscriber: wdng.

On AArch64 (which seems to be the only target that supports it), this attribute allows codegen to avoid saving/restoring the value in x0 across a call.

Gives a 0.1% geomean -Os code size improvement on CTMark.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D96099

Files:
  llvm/include/llvm/CodeGen/GlobalISel/CallLowering.h
  llvm/include/llvm/CodeGen/TargetCallingConv.h
  llvm/lib/CodeGen/GlobalISel/CallLowering.cpp
  llvm/lib/Target/AArch64/GISel/AArch64CallLowering.cpp
  llvm/test/CodeGen/AArch64/GlobalISel/arm64-irtranslator-switch.ll
  llvm/test/CodeGen/AArch64/arm64-this-return.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D96099.321638.patch
Type: text/x-patch
Size: 12019 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20210205/65598841/attachment.bin>


More information about the llvm-commits mailing list