[llvm-dev] New Pass Manager with flto[=thin] not enabled (??)
Davide Italiano via llvm-dev
llvm-dev at lists.llvm.org
Tue Oct 3 12:08:35 PDT 2017
On Tue, Oct 3, 2017 at 11:57 AM, Graham Yiu via llvm-dev
<llvm-dev at lists.llvm.org> wrote:
> Hello,
>
> I recently noticed that the new pass manager was not enabled at regular/thin
> LTO link step even if '-fexperimental-new-pass-manager' was specified in the
> compile step and link step commands. Upon closer inspection, it seems
> there's so real way to invoke the new pass manager path ('runNewPMPasses' in
> lib/LTO/LTOBackend.cpp) during link step.
>
`-fexperimental-new-pass-manager` is a compile time flag and has no
effect on the link step IIRC.
You may want to teach the driver to pass the correct flag to the LTO
plugin in gold or to lld.
--
Davide
More information about the llvm-dev
mailing list