From: Stepan Dyatkovskiy Date: Tue, 24 Sep 2013 20:06:31 +0000 (+0000) Subject: Patch that forces MergeFunctions pass for clang. X-Git-Tag: android-x86-6.0-r1~129^2~1869 X-Git-Url: http://git.osdn.net/view?a=commitdiff_plain;h=33300d91b66a86fc39482dd262fb735ca54d92e1;p=android-x86%2Fexternal-llvm.git 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 --- diff --git a/utils/Misc/mergefunctions.clang.svn.patch b/utils/Misc/mergefunctions.clang.svn.patch new file mode 100644 index 00000000000..6e2f0f52279 --- /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); + } +