summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStepan Dyatkovskiy <stpworld@narod.ru>2013-09-24 20:06:31 +0000
committerStepan Dyatkovskiy <stpworld@narod.ru>2013-09-24 20:06:31 +0000
commit33300d91b66a86fc39482dd262fb735ca54d92e1 (patch)
tree1b823694673dea6e1b88a41a3fc727836b6c1f81
parentd374c7b3bf49a62a722b52367f122ca7fd53ab08 (diff)
downloadllvm-33300d91b66a86fc39482dd262fb735ca54d92e1.tar.gz
llvm-33300d91b66a86fc39482dd262fb735ca54d92e1.tar.bz2
llvm-33300d91b66a86fc39482dd262fb735ca54d92e1.tar.xz
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
-rw-r--r--utils/Misc/mergefunctions.clang.svn.patch14
1 files changed, 14 insertions, 0 deletions
diff --git a/utils/Misc/mergefunctions.clang.svn.patch b/utils/Misc/mergefunctions.clang.svn.patch
new file mode 100644
index 0000000000..6e2f0f5227
--- /dev/null
+++ b/utils/Misc/mergefunctions.clang.svn.patch
@@ -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);
+ }
+