1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-25 04:02:41 +01:00

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.

llvm-svn: 191331
This commit is contained in:
Stepan Dyatkovskiy 2013-09-24 20:06:31 +00:00
parent 8a5b23ab1a
commit 38ec7f5b21

View File

@ -0,0 +1,14 @@
Index: lib/CodeGen/BackendUtil.cpp
===================================================================
--- lib/CodeGen/BackendUtil.cpp (revision 191330)
+++ lib/CodeGen/BackendUtil.cpp (working copy)
@@ -336,6 +336,9 @@
MPM->add(createStripSymbolsPass(true));
}
+ // Force MergeFunctions pass.
+ MPM->add(createMergeFunctionsPass());
+
PMBuilder.populateModulePassManager(*MPM);
}