[all-commits] [llvm/llvm-project] 1ab4db: [HotColdSplit] Reflect full cost of parameters in ...

Aditya Kumar via All-commits all-commits at lists.llvm.org
Fri Dec 18 17:11:17 PST 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 1ab4db0f847fa1ddd394dbf54a5051b626eab160
      https://github.com/llvm/llvm-project/commit/1ab4db0f847fa1ddd394dbf54a5051b626eab160
  Author: Aditya Kumar <1894981+hiraditya at users.noreply.github.com>
  Date:   2020-12-18 (Fri, 18 Dec 2020)

  Changed paths:
    M llvm/lib/Transforms/IPO/HotColdSplitting.cpp
    M llvm/test/Transforms/CodeExtractor/extract-assume.ll
    M llvm/test/Transforms/HotColdSplit/apply-penalty-for-inputs.ll
    M llvm/test/Transforms/HotColdSplit/apply-penalty-for-outputs.ll
    M llvm/test/Transforms/HotColdSplit/apply-successor-penalty.ll
    M llvm/test/Transforms/HotColdSplit/assumption-cache-invalidation.ll

  Log Message:
  -----------
  [HotColdSplit] Reflect full cost of parameters in split penalty

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

Patch by: Vedant Kumar(@vsk)
Reviewers: hiraditya,rjf,t.p.northover
Reviewed By: hiraditya,rjf

Differential Revision: https://reviews.llvm.org/D59715




More information about the All-commits mailing list