This is an archive of the discontinued LLVM Phabricator instance.

Handle Invoke during sample profiler annotation: make it inlinable.
ClosedPublic

Authored by danielcdh on Sep 9 2016, 10:20 AM.

Details

Summary

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.

Diff Detail

Event Timeline

danielcdh updated this revision to Diff 70860.Sep 9 2016, 10:20 AM
danielcdh retitled this revision from to Handle Invoke during sample profiler annotation: make it inlinable..
danielcdh updated this object.
danielcdh added reviewers: dnovillo, davidxl.
danielcdh added a subscriber: llvm-commits.
dnovillo accepted this revision.Sep 18 2016, 1:39 PM
dnovillo edited edge metadata.

LGTM.

Apologies for the delay.

This revision is now accepted and ready to land.Sep 18 2016, 1:39 PM
danielcdh closed this revision.Sep 18 2016, 4:20 PM