[PassBuilder] Add OpenMPOpt to default LTO pipeline
authorJoseph Huber <jhuber6@vols.utk.edu>
Fri, 21 Jan 2022 20:43:20 +0000 (15:43 -0500)
committerJoseph Huber <jhuber6@vols.utk.edu>
Tue, 1 Feb 2022 04:11:43 +0000 (23:11 -0500)
commit9d3a47576c1c122891fe88ac13d8a3a131544c34
treec7548348099d24c65a577a402f8170f03eabac4c
parent19fac745e3226fbe9db4d3eab106fdaf19d9019d
[PassBuilder] Add OpenMPOpt to default LTO pipeline

The LTO support for OpenMP offloading allows us to run the OpenMPOpt
pass during the LTO pipeline. This patch introduces an early run of the
Module pass and a late run of the CGSCC pass. These are quick no-ops if
there is no OpenMP in the module.

Depends on D118198

Differential Revision: https://reviews.llvm.org/D118611
llvm/lib/Passes/PassBuilderPipelines.cpp
llvm/test/Other/new-pm-lto-defaults.ll