commit | 73ee9c3fb1f15cbfb2f91a4f645834c94a76a949 | [log] [tgz] |
---|---|---|
author | Devang Patel <dpatel@apple.com> | Tue Mar 25 21:03:02 2008 +0000 |
committer | Devang Patel <dpatel@apple.com> | Tue Mar 25 21:03:02 2008 +0000 |
tree | 572a03a004ed2da0773a87c9b5ae29df3955eada | |
parent | 55c666a867f6c47ada58b3a620be285de719fb8e [diff] [blame] |
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
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 @@ if (addPreEmitPass(PM, Fast) && PrintMachineCode) PM.add(createMachineFunctionPrinterPass(cerr)); - if (AlignLoops) + if (AlignLoops && !OptimizeForSize) PM.add(createLoopAlignerPass()); switch (FileType) {