I tried to put it in the same place in the pipeline as the legacy PM.
Fixes PR48399.
| Paths 
 |  Differential  D93002  
[NPM] Support -fmerge-functions ClosedPublic Authored by aeubanks on Dec 9 2020, 10:43 PM. 
Details 
 Summary I tried to put it in the same place in the pipeline as the legacy PM. Fixes PR48399. 
Diff Detail 
 
Unit TestsFailed 
 Event TimelineHerald added projects: Restricted Project, Restricted Project.  ·  View Herald TranscriptDec 9 2020, 10:43 PM This revision is now accepted and ready to land.Dec 10 2020, 10:26 AM 
 This revision was landed with ongoing or failed builds.Dec 10 2020, 11:45 AM Closed by commit rGff7e1da68f2a: [NPM] Support -fmerge-functions (authored by aeubanks).  ·  Explain Why This revision was automatically updated to reflect the committed changes. 
Revision Contents 
 
 
Diff 310766 clang/lib/CodeGen/BackendUtil.cpp
 clang/test/CodeGenCXX/merge-functions.cpp
 llvm/include/llvm/Passes/PassBuilder.h
 llvm/lib/Passes/PassBuilder.cpp
 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
In the legacy PM this is placed after the AlwaysInlinerPass rather than before it: https://github.com/llvm/llvm-project/blob/57db6d20c6dadbc129f0bf842b2028e2716b67f6/llvm/lib/Transforms/IPO/PassManagerBuilder.cpp#L536-L547