[PATCH] D106440: [IROutliner] Change Prioritization of Outlining to honor cost model

Andrew Litteken via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Jul 21 07:01:09 PDT 2021


AndrewLitteken created this revision.
AndrewLitteken added a reviewer: paquette.
Herald added subscribers: ormris, hiraditya.
AndrewLitteken requested review of this revision.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.

Currently, the IROutliner uses a simple metric to outline the largest amount of IR possible to outline first if it fits the cost model.  This is model loses out on smaller blocks of code that have higher reductions in cost that are contained within larger blocks of IR.

This reverses the order, where we calculate all of the costs first, and then reorder and extract items based on the calculated results.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D106440

Files:
  llvm/include/llvm/Transforms/IPO/IROutliner.h
  llvm/lib/Transforms/IPO/IROutliner.cpp
  llvm/test/Transforms/IROutliner/opt-remarks.ll
  llvm/test/Transforms/IROutliner/outlining-bitcasts.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D106440.360436.patch
Type: text/x-patch
Size: 30209 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20210721/fd93a981/attachment.bin>


More information about the llvm-commits mailing list