llvm.org GIT mirror llvm / 33300d9
Patch that forces MergeFunctions pass for clang. It is temporary patch. We need to keep it in trunk, since it makes easer to test it on buildbots on different platforms. Once we see stable MergeFunctions behaviour with satisfied perfomance, this patch will be removed. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@191331 91177308-0d34-0410-b5e6-96231b3b80d8 Stepan Dyatkovskiy 6 years ago
1 changed file(s) with 14 addition(s) and 0 deletion(s). Raw diff Collapse all Expand all
0 Index: lib/CodeGen/BackendUtil.cpp
1 ===================================================================
2 --- lib/CodeGen/BackendUtil.cpp (revision 191330)
3 +++ lib/CodeGen/BackendUtil.cpp (working copy)
4 @@ -336,6 +336,9 @@
5 MPM->add(createStripSymbolsPass(true));
6 }
7
8 + // Force MergeFunctions pass.
9 + MPM->add(createMergeFunctionsPass());
10 +
11 PMBuilder.populateModulePassManager(*MPM);
12 }
13