[PATCH] D24409: Handle Invoke during sample profiler annotation: make it inlinable.

Dehao Chen via llvm-commits llvm-commits at lists.llvm.org
Fri Sep 9 10:20:25 PDT 2016


danielcdh created this revision.
danielcdh added reviewers: dnovillo, davidxl.
danielcdh added a subscriber: llvm-commits.

Previously we reline on inst-combine to remove inlinable invoke instructions. This causes trouble because a few extra optimizations are schedule early that could introduce too much CFG change (e.g. simplifycfg removes too much control flow). This patch handles invoke instruction in-place during sample profile annotation, so that we do not rely on instcombine to remove those invoke instructions.

https://reviews.llvm.org/D24409

Files:
  lib/Transforms/IPO/SampleProfile.cpp
  test/Transforms/SampleProfile/Inputs/einline.prof
  test/Transforms/SampleProfile/early-inline.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D24409.70860.patch
Type: text/x-patch
Size: 7400 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20160909/97927526/attachment.bin>


More information about the llvm-commits mailing list