diff options
author | Evan Cheng <evan.cheng@apple.com> | 2008-06-03 06:56:08 +0000 |
---|---|---|
committer | Evan Cheng <evan.cheng@apple.com> | 2008-06-03 06:56:08 +0000 |
commit | f73ff3aaf64627fb71753032904ee3ab2a7add28 (patch) | |
tree | 9bf0bd12d2a7eabc86531d06dd4e8e99e36f23fd /lib/CodeGen | |
parent | 4315eee376450972d111c8e263ca8aecc7a3a13b (diff) | |
download | external_llvm-f73ff3aaf64627fb71753032904ee3ab2a7add28.zip external_llvm-f73ff3aaf64627fb71753032904ee3ab2a7add28.tar.gz external_llvm-f73ff3aaf64627fb71753032904ee3ab2a7add28.tar.bz2 |
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
Diffstat (limited to 'lib/CodeGen')
-rw-r--r-- | lib/CodeGen/LLVMTargetMachine.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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 @@ LLVMTargetMachine::addPassesToEmitFile(PassManagerBase &PM, if (addPreEmitPass(PM, Fast) && PrintMachineCode) PM.add(createMachineFunctionPrinterPass(cerr)); - if (AlignLoops && !OptimizeForSize) + if (AlignLoops && !Fast && !OptimizeForSize) PM.add(createLoopAlignerPass()); switch (FileType) { |