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.
Details
Details
Diff Detail
Diff Detail
- Repository
- rL LLVM
Event Timeline
Comment Actions
LGTM (though I have no idea what legacy does for this :) )
tools/opt/NewPMDriver.cpp | ||
---|---|---|
95 ↗ | (On Diff #173497) | Unrelated to your fix, shouldnt this read "of the MODULE pass pipeline" ? |
Comment Actions
Generally feel free to submit w/ comment and commit message updates.
(But also I want to explicitly say you don't need to wait for me on this kind of patch, very happy w/ Fedor's review.)
include/llvm/Passes/PassBuilder.h | ||
---|---|---|
501–502 ↗ | (On Diff #173497) | Also mention the O0 thing here? |