9cac79b378
only release, no new features have been added. Please note that this version requires C++11 support to build; see UPDATING for more information. Release notes for llvm and clang can be found here: <http://llvm.org/releases/3.5.1/docs/ReleaseNotes.html> <http://llvm.org/releases/3.5.1/tools/clang/docs/ReleaseNotes.html> MFC after: 1 month X-MFC-With: 276479
23 lines
1.1 KiB
Diff
23 lines
1.1 KiB
Diff
Pull in r222562 from upstream llvm trunk (by Roman Divacky):
|
|
|
|
Disable header duplication at -Oz in loop-rotate pass.
|
|
|
|
This helps to minimize the size of boot2.
|
|
|
|
Introduced here: http://svnweb.freebsd.org/changeset/base/274968
|
|
|
|
Index: lib/Transforms/IPO/PassManagerBuilder.cpp
|
|
===================================================================
|
|
--- lib/Transforms/IPO/PassManagerBuilder.cpp
|
|
+++ lib/Transforms/IPO/PassManagerBuilder.cpp
|
|
@@ -195,7 +195,8 @@ void PassManagerBuilder::populateModulePassManager
|
|
MPM.add(createTailCallEliminationPass()); // Eliminate tail calls
|
|
MPM.add(createCFGSimplificationPass()); // Merge & remove BBs
|
|
MPM.add(createReassociatePass()); // Reassociate expressions
|
|
- MPM.add(createLoopRotatePass()); // Rotate Loop
|
|
+ // Rotate Loop - disable header duplication at -Oz
|
|
+ MPM.add(createLoopRotatePass(SizeLevel == 2 ? 0 : -1));
|
|
MPM.add(createLICMPass()); // Hoist loop invariants
|
|
MPM.add(createLoopUnswitchPass(SizeLevel || OptLevel < 3));
|
|
MPM.add(createInstructionCombiningPass());
|