HomePhabricator

Add an OptimizerLast EP

Authored by philip.pfaffe on Nov 12 2018, 3:17 AM.

Description

Add an OptimizerLast EP

Summary:
It turns out that we need an OptimizerLast PassBuilder extension point
after all. I missed the relevance of this EP the first time. By legacy PM magic,
function passes added at this EP get added to the last _Function_ PM, which is a
feature we lost when dropping this EP for the new PM.

A key difference between this and the legacy PassManager's OptimizerLast
callback is that this extension point is not triggered at O0. Extensions
to the O0 pipeline should append their passes to the end of the overall
pipeline.

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

llvm-svn: 346645

Details

Committed
philip.pfaffeNov 12 2018, 3:17 AM
Differential Revision
D54374: [newpm] Add an OptimizerLast EP
Parents
rG2c7f3d32825f: [GCOV] fix test after patch rL346642
Branches
Unknown
Tags
Unknown