commit | f73ff3aaf64627fb71753032904ee3ab2a7add28 | [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 | 4315eee376450972d111c8e263ca8aecc7a3a13b [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) {