[PATCH] D15271: Split functions to create shrink wrapping opportunities

Thomas Jablin via llvm-commits llvm-commits at lists.llvm.org
Mon Jan 18 15:49:30 PST 2016


tjablin updated this revision to Diff 45216.
tjablin added a comment.

Per Hal's comments, use a more conservative behavior in the case of Extract and Cast Instructions.

I explored the enabling saving callee-saved registers by copying as in http://reviews.llvm.org/D15340 and http://reviews.llvm.org/D15341, but I think this solution is less invasive and less likely to harm performance when tail calls optimization is enabled. In particular, I am worried that saving callee-saved registers by copying could harm performance in tight loops.


http://reviews.llvm.org/D15271

Files:
  lib/Target/PowerPC/CMakeLists.txt
  lib/Target/PowerPC/PPC.h
  lib/Target/PowerPC/PPCEnableShrinkWrap.cpp
  lib/Target/PowerPC/PPCTargetMachine.cpp
  test/CodeGen/PowerPC/EnableShrinkWrapTest.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D15271.45216.patch
Type: text/x-patch
Size: 16589 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20160118/6b0096d0/attachment-0001.bin>


More information about the llvm-commits mailing list