Do not run loop-aligner at -fast (e.g. -O0).

llvm-svn: 51898
This commit is contained in:
Evan Cheng 2008-06-03 06:56:08 +00:00
parent 499c119d7c
commit 097826643b
1 changed files with 1 additions and 1 deletions

View 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) {