[llvm-commits] [llvm] r48794 - /llvm/trunk/lib/CodeGen/LLVMTargetMachine.cpp
Devang Patel
dpatel at apple.com
Tue Mar 25 14:03:03 PDT 2008
Author: dpatel
Date: Tue Mar 25 16:03:02 2008
New Revision: 48794
URL: http://llvm.org/viewvc/llvm-project?rev=48794&view=rev
Log:
Do not align loops if optimizing for size.
Modified:
llvm/trunk/lib/CodeGen/LLVMTargetMachine.cpp
Modified: llvm/trunk/lib/CodeGen/LLVMTargetMachine.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/CodeGen/LLVMTargetMachine.cpp?rev=48794&r1=48793&r2=48794&view=diff
==============================================================================
--- llvm/trunk/lib/CodeGen/LLVMTargetMachine.cpp (original)
+++ llvm/trunk/lib/CodeGen/LLVMTargetMachine.cpp Tue Mar 25 16:03:02 2008
@@ -135,7 +135,7 @@
if (addPreEmitPass(PM, Fast) && PrintMachineCode)
PM.add(createMachineFunctionPrinterPass(cerr));
- if (AlignLoops)
+ if (AlignLoops && !OptimizeForSize)
PM.add(createLoopAlignerPass());
switch (FileType) {
More information about the llvm-commits
mailing list