commit | 042de3d7ce35a23c3f0d3bfa1883527e694a95df | [log] [tgz] |
---|---|---|
author | Evan Cheng <evan.cheng@apple.com> | Tue Jun 03 06:56:08 2008 +0000 |
committer | Evan Cheng <evan.cheng@apple.com> | Tue Jun 03 06:56:08 2008 +0000 |
tree | 9bf0bd12d2a7eabc86531d06dd4e8e99e36f23fd | |
parent | 2c1d0550d65efb30a950cf42764aecac003e1970 [diff] [blame] |
Do not run loop-aligner at -fast (e.g. -O0). git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@51898 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/lib/CodeGen/LLVMTargetMachine.cpp b/lib/CodeGen/LLVMTargetMachine.cpp index 9a35109..e4ad872 100644 --- a/lib/CodeGen/LLVMTargetMachine.cpp +++ b/lib/CodeGen/LLVMTargetMachine.cpp
@@ -140,7 +140,7 @@ if (addPreEmitPass(PM, Fast) && PrintMachineCode) PM.add(createMachineFunctionPrinterPass(cerr)); - if (AlignLoops && !OptimizeForSize) + if (AlignLoops && !Fast && !OptimizeForSize) PM.add(createLoopAlignerPass()); switch (FileType) {