aboutsummaryrefslogtreecommitdiffstats
path: root/lib
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
commit73ee9c3fb1f15cbfb2f91a4f645834c94a76a949 (patch)
tree572a03a004ed2da0773a87c9b5ae29df3955eada /lib
parent55c666a867f6c47ada58b3a620be285de719fb8e (diff)
downloadexternal_llvm-73ee9c3fb1f15cbfb2f91a4f645834c94a76a949.zip
external_llvm-73ee9c3fb1f15cbfb2f91a4f645834c94a76a949.tar.gz
external_llvm-73ee9c3fb1f15cbfb2f91a4f645834c94a76a949.tar.bz2
Do not align loops if optimizing for size.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@48794 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib')
-rw-r--r--lib/CodeGen/LLVMTargetMachine.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/CodeGen/LLVMTargetMachine.cpp b/lib/CodeGen/LLVMTargetMachine.cpp
index 33cf6b5..04c5910 100644
--- a/lib/CodeGen/LLVMTargetMachine.cpp
+++ b/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) {