[PATCH] D59715: [HotColdSplit] Reflect full cost of parameters in split penalty

Vedant Kumar via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Mar 22 13:47:40 PDT 2019


vsk created this revision.
vsk added a reviewer: t.p.northover.
Herald added a subscriber: hiraditya.
Herald added a project: LLVM.

Make the penalty for splitting a region more accurately reflect the cost
of materializing all of the inputs/outputs to/from the region.

This almost entirely eliminates code growth within functions which
undergo splitting in key internal frameworks, and reduces the size of
those frameworks between 2.6% to 3%.

rdar://49167240


https://reviews.llvm.org/D59715

Files:
  llvm/lib/Transforms/IPO/HotColdSplitting.cpp
  llvm/test/Transforms/CodeExtractor/extract-assume.ll
  llvm/test/Transforms/HotColdSplit/apply-penalty-for-inputs.ll
  llvm/test/Transforms/HotColdSplit/apply-penalty-for-outputs.ll
  llvm/test/Transforms/HotColdSplit/apply-successor-penalty.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D59715.191941.patch
Type: text/x-patch
Size: 7859 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20190322/85fbe035/attachment.bin>


More information about the llvm-commits mailing list