mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-26 21:32:10 +00: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. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@191331 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
d374c7b3bf
commit
33300d91b6
14
utils/Misc/mergefunctions.clang.svn.patch
Normal file
14
utils/Misc/mergefunctions.clang.svn.patch
Normal 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);
|
||||||
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user