[llvm-commits] [llvm] r85581 - /llvm/trunk/include/llvm/Support/StandardPasses.h
Evan Cheng
evan.cheng at apple.com
Fri Oct 30 00:23:49 PDT 2009
Author: evancheng
Date: Fri Oct 30 02:23:49 2009
New Revision: 85581
URL: http://llvm.org/viewvc/llvm-project?rev=85581&view=rev
Log:
Rather than having llvm-gcc changing the meaning of OptimizeSize, just make sure loop unswitch is conservative when optimization level is < 3.
Modified:
llvm/trunk/include/llvm/Support/StandardPasses.h
Modified: llvm/trunk/include/llvm/Support/StandardPasses.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/Support/StandardPasses.h?rev=85581&r1=85580&r2=85581&view=diff
==============================================================================
--- llvm/trunk/include/llvm/Support/StandardPasses.h (original)
+++ llvm/trunk/include/llvm/Support/StandardPasses.h Fri Oct 30 02:23:49 2009
@@ -128,7 +128,7 @@
PM->add(createReassociatePass()); // Reassociate expressions
PM->add(createLoopRotatePass()); // Rotate Loop
PM->add(createLICMPass()); // Hoist loop invariants
- PM->add(createLoopUnswitchPass(OptimizeSize));
+ PM->add(createLoopUnswitchPass(OptimizeSize || OptimizationLevel < 3));
PM->add(createInstructionCombiningPass());
PM->add(createIndVarSimplifyPass()); // Canonicalize indvars
PM->add(createLoopDeletionPass()); // Delete dead loops
More information about the llvm-commits
mailing list