summaryrefslogtreecommitdiffstats
path: root/contrib/llvm/patches/patch-10-llvm-r222562-loop-rotate.diff
diff options
context:
space:
mode:
authordim <dim@FreeBSD.org>2015-01-18 14:14:47 +0000
committerdim <dim@FreeBSD.org>2015-01-18 14:14:47 +0000
commitc074a2b0d05fdd11d61e6c5ffa970c806be2f31a (patch)
tree0e56d6fc0fbb158ec2ac946d1e22170e0107492d /contrib/llvm/patches/patch-10-llvm-r222562-loop-rotate.diff
parent814696f72012ae32daa581d7a1d5253a9b439b09 (diff)
parent3c7e7a1538a873b0d3b012ef8811969ac4552c2a (diff)
downloadFreeBSD-src-c074a2b0d05fdd11d61e6c5ffa970c806be2f31a.zip
FreeBSD-src-c074a2b0d05fdd11d61e6c5ffa970c806be2f31a.tar.gz
Upgrade our copy of clang and llvm to 3.5.1 release. This is a bugfix
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
Diffstat (limited to 'contrib/llvm/patches/patch-10-llvm-r222562-loop-rotate.diff')
-rw-r--r--contrib/llvm/patches/patch-10-llvm-r222562-loop-rotate.diff22
1 files changed, 22 insertions, 0 deletions
diff --git a/contrib/llvm/patches/patch-10-llvm-r222562-loop-rotate.diff b/contrib/llvm/patches/patch-10-llvm-r222562-loop-rotate.diff
new file mode 100644
index 0000000..bc09f27
--- /dev/null
+++ b/contrib/llvm/patches/patch-10-llvm-r222562-loop-rotate.diff
@@ -0,0 +1,22 @@
+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());
OpenPOWER on IntegriCloud