[BOLT] Add icp-inline option
authorAmir Ayupov <aaupov@fb.com>
Wed, 11 May 2022 10:18:12 +0000 (03:18 -0700)
committerAmir Ayupov <aaupov@fb.com>
Wed, 11 May 2022 10:21:24 +0000 (03:21 -0700)
commitc2d40f1dfb64816765080ba5fa5c0837dbeee620
tree5a4c8805149327e3d0594437d9eb854dbe980d91
parentb4a5340be55863c0b2d0ebea92188fb42948bcd1
[BOLT] Add icp-inline option

Add an option to only peel ICP targets that can be subsequently inlined.
Yet there's no guarantee that they will be inlined.

The mode is independent from the heuristic used to choose ICP targets: by exec
count, mispredictions, or memory profile.

Reviewed By: rafauler

Differential Revision: https://reviews.llvm.org/D124900
bolt/lib/Passes/IndirectCallPromotion.cpp