[SimplifyCFG] Enabled hoisting late in LTO pipeline.
authorFlorian Hahn <flo@fhahn.com>
Mon, 4 Jan 2021 16:26:58 +0000 (16:26 +0000)
committerFlorian Hahn <flo@fhahn.com>
Mon, 4 Jan 2021 16:26:58 +0000 (16:26 +0000)
commitc367258b5cc257973f49508c1ac5763cb077428e
tree396e3a68430d7b457f9cef9cb1c919e63a7bd40f
parente2d3d501ef8b49eb8990dd3556948373b023cd48
[SimplifyCFG] Enabled hoisting late in LTO pipeline.

bb7d3af1139c disabled hoisting in SimplifyCFG by default, but enabled it
late in the pipeline. But it appears as if the LTO pipelines got missed.

This patch adjusts the LTO pipelines to also enable hoisting in the
later stages.

Unfortunately there's no easy way to add a test for the change I think.

Reviewed By: lebedev.ri

Differential Revision: https://reviews.llvm.org/D93684
llvm/lib/Passes/PassBuilder.cpp
llvm/lib/Transforms/IPO/PassManagerBuilder.cpp