Displaying 2 results from an estimated 2 matches for "runnewpmpasses".
2017 Oct 03
2
New Pass Manager with flto[=thin] not enabled (??)
...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.
'Conf.UseNewPM' is used to select the new PM in LTOBackend.cpp, but only
two places in the code sets it. The first is through the 'llvm-lto2' tool,
and the second during the compile step with '-fthinlto-index=<value>'...
2017 Oct 03
2
New Pass Manager with flto[=thin] not enabled (??)
...he 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.
>
> --...