[NewPM] Fix CGSCCOptimizerLateEPCallbacks place in pipeline
authorArthur Eubanks <aeubanks@google.com>
Mon, 28 Dec 2020 21:17:32 +0000 (13:17 -0800)
committerArthur Eubanks <aeubanks@google.com>
Mon, 28 Dec 2020 22:03:10 +0000 (14:03 -0800)
commit6c36286a2e180443005d31a9cec2ca182963bcad
treee1ba544700e305e85562da47665019dbf3db83c5
parent44ee14f993ff093c3c3ef65ab5aa1fdd3f7a1dc6
[NewPM] Fix CGSCCOptimizerLateEPCallbacks place in pipeline

CGSCCOptimizerLateEPCallbacks are supposed to be run before the function
simplification pipeline, like in the legacy PM and as specified in the
comments for registerCGSCCOptimizerLateEPCallback().

Reviewed By: ychen

Differential Revision: https://reviews.llvm.org/D93871
llvm/lib/Passes/PassBuilder.cpp
llvm/test/Other/new-pm-defaults.ll