[llvm] r191331 - Patch that forces MergeFunctions pass for clang.

Stepan Dyatkovskiy stpworld at narod.ru
Tue Sep 24 13:06:31 PDT 2013


Author: dyatkovskiy
Date: Tue Sep 24 15:06:31 2013
New Revision: 191331

URL: http://llvm.org/viewvc/llvm-project?rev=191331&view=rev
Log:
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.


Added:
    llvm/trunk/utils/Misc/mergefunctions.clang.svn.patch

Added: llvm/trunk/utils/Misc/mergefunctions.clang.svn.patch
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/utils/Misc/mergefunctions.clang.svn.patch?rev=191331&view=auto
==============================================================================
--- llvm/trunk/utils/Misc/mergefunctions.clang.svn.patch (added)
+++ llvm/trunk/utils/Misc/mergefunctions.clang.svn.patch Tue Sep 24 15:06:31 2013
@@ -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);
+ }
+ 





More information about the llvm-commits mailing list