[PATCH] D33618: [PartialInlining] Reduce function outlining overhead

David Li via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri May 26 17:36:36 PDT 2017


davidxl created this revision.
Herald added a subscriber: eraman.

Allocas whose life range is fully contained inside the outlined region should be pushed to the outlined function.  This not only reduces the number of live-in variables to the outline function (thus reduced number of parameters), but can also avoid 'escaping' the address of the locals (if not shrink wrapped in).


https://reviews.llvm.org/D33618

Files:
  include/llvm/Transforms/Utils/CodeExtractor.h
  lib/Transforms/Utils/CodeExtractor.cpp
  test/Transforms/CodeExtractor/PartialInlineAlloca.ll
  test/Transforms/CodeExtractor/PartialInlineAlloca2.ll
  test/Transforms/CodeExtractor/PartialInlineAlloca4.ll
  test/Transforms/CodeExtractor/PartialInlineAlloca5.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D33618.100510.patch
Type: text/x-patch
Size: 14035 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20170527/2b082b7a/attachment.bin>


More information about the llvm-commits mailing list