Do not run loop-aligner at -fast (e.g. -O0).
authorEvan Cheng <evan.cheng@apple.com>
Tue, 3 Jun 2008 06:56:08 +0000 (06:56 +0000)
committerEvan Cheng <evan.cheng@apple.com>
Tue, 3 Jun 2008 06:56:08 +0000 (06:56 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@51898 91177308-0d34-0410-b5e6-96231b3b80d8

lib/CodeGen/LLVMTargetMachine.cpp

index 9a3510939c53f318c7f5c1386103eb5ea6ddfa7e..e4ad872094197c479713af72cb71c9869b15f775 100644 (file)
@@ -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) {