diff options
| author | Devang Patel <dpatel@apple.com> | 2008-03-25 21:03:02 +0000 |
|---|---|---|
| committer | Devang Patel <dpatel@apple.com> | 2008-03-25 21:03:02 +0000 |
| commit | 72cfe84f058affda3f69d9e9b9debf245747c633 (patch) | |
| tree | 4bea0e19262749873b70d92fbf068afdf42d655d /llvm/lib/CodeGen/LLVMTargetMachine.cpp | |
| parent | 246a52740b2d02721ca8229dcb61f5682aca6aad (diff) | |
| download | bcm5719-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.cpp | 2 |
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) { |

