summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/LLVMTargetMachine.cpp
diff options
context:
space:
mode:
authorDevang Patel <dpatel@apple.com>2008-03-25 21:03:02 +0000
committerDevang Patel <dpatel@apple.com>2008-03-25 21:03:02 +0000
commit72cfe84f058affda3f69d9e9b9debf245747c633 (patch)
tree4bea0e19262749873b70d92fbf068afdf42d655d /llvm/lib/CodeGen/LLVMTargetMachine.cpp
parent246a52740b2d02721ca8229dcb61f5682aca6aad (diff)
downloadbcm5719-llvm-72cfe84f058affda3f69d9e9b9debf245747c633.tar.gz
bcm5719-llvm-72cfe84f058affda3f69d9e9b9debf245747c633.zip
Do not align loops if optimizing for size.
llvm-svn: 48794
Diffstat (limited to 'llvm/lib/CodeGen/LLVMTargetMachine.cpp')
-rw-r--r--llvm/lib/CodeGen/LLVMTargetMachine.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/LLVMTargetMachine.cpp b/llvm/lib/CodeGen/LLVMTargetMachine.cpp
index 33cf6b54891..04c59107f8c 100644
--- a/llvm/lib/CodeGen/LLVMTargetMachine.cpp
+++ b/llvm/lib/CodeGen/LLVMTargetMachine.cpp
@@ -135,7 +135,7 @@ LLVMTargetMachine::addPassesToEmitFile(PassManagerBase &PM,
if (addPreEmitPass(PM, Fast) && PrintMachineCode)
PM.add(createMachineFunctionPrinterPass(cerr));
- if (AlignLoops)
+ if (AlignLoops && !OptimizeForSize)
PM.add(createLoopAlignerPass());
switch (FileType) {
OpenPOWER on IntegriCloud