[PATCH] D18902: X86: Use a callee save register for the swiftself parameter.

Matthias Braun via llvm-commits llvm-commits at lists.llvm.org
Fri Apr 8 10:52:42 PDT 2016


MatzeB created this revision.
MatzeB added reviewers: qcolombet, manmanren.
MatzeB added a subscriber: llvm-commits.
MatzeB set the repository for this revision to rL LLVM.
Herald added a subscriber: mcrosier.

It is very likely that the swiftself parameter is alive throughout most
functions function so putting it into a callee save register should
avoid spills for the callers with only a minimum amount of extra spills
in the callees.

Currently the generated code is correct but unnecessarily spills and
reloads arguments passed in callee save registers, I will address this
in upcoming patches.

Repository:
  rL LLVM

http://reviews.llvm.org/D18902

Files:
  lib/Target/X86/X86CallingConv.td
  lib/Target/X86/X86FrameLowering.cpp
  test/CodeGen/X86/swiftself.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D18902.53040.patch
Type: text/x-patch
Size: 4928 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20160408/376f870d/attachment-0001.bin>


More information about the llvm-commits mailing list