summaryrefslogtreecommitdiffstats
path: root/llvm/utils
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
commit296484eae20e9a736b56293380922a1737c22e4e (patch)
treefd8f01afcba90b5c4feea58e5a4de1eac2404b4c /llvm/utils
parentea4ca1a099381da819e1ddc5ada43fd0758695ae (diff)
downloadbcm5719-llvm-296484eae20e9a736b56293380922a1737c22e4e.tar.gz
bcm5719-llvm-296484eae20e9a736b56293380922a1737c22e4e.zip
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
Diffstat (limited to 'llvm/utils')
-rw-r--r--llvm/utils/Misc/mergefunctions.clang.svn.patch14
1 files changed, 14 insertions, 0 deletions
diff --git a/llvm/utils/Misc/mergefunctions.clang.svn.patch b/llvm/utils/Misc/mergefunctions.clang.svn.patch
new file mode 100644
index 00000000000..6e2f0f52279
--- /dev/null
+++ b/llvm/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);
+ }
+
OpenPOWER on IntegriCloud