This allows those instrumentation to log when they decide to skip a
pass. This provides extra helpful info for optnone functions and also
will help with opt-bisect.
Have OptNoneInstrumentation print when it skips due to seeing optnone.
Paths
| Differential D90545
[NewPM] Don't run before pass instrumentation on required passes ClosedPublic Authored by aeubanks on Oct 31 2020, 11:11 PM.
Details Summary This allows those instrumentation to log when they decide to skip a Have OptNoneInstrumentation print when it skips due to seeing optnone.
Diff Detail
Unit TestsFailed
Event TimelineThis revision is now accepted and ready to land.Nov 3 2020, 6:25 PM This revision was landed with ongoing or failed builds.Nov 4 2020, 9:47 AM Closed by commit rGd8f531c42c71: [NewPM] Don't run before pass instrumentation on required passes (authored by aeubanks). · Explain Why This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 302868 llvm/include/llvm/IR/PassInstrumentation.h
llvm/include/llvm/Passes/StandardInstrumentations.h
llvm/lib/Passes/StandardInstrumentations.cpp
llvm/test/Feature/optnone-opt.ll
llvm/unittests/IR/PassBuilderCallbacksTest.cpp
|
Could you add a doxygen comment that the BeforePassCallbacks are only called if the pass is not required around the declaration of BeforePassCallbacks?
Would be useful to have comments on each of the vectors of callbacks.