Do not align loops if optimizing for size.

llvm-svn: 48794
This commit is contained in:
Devang Patel 2008-03-25 21:03:02 +00:00
parent 246a52740b
commit 72cfe84f05
1 changed files with 1 additions and 1 deletions

View File

@ -135,7 +135,7 @@ LLVMTargetMachine::addPassesToEmitFile(PassManagerBase &PM,
if (addPreEmitPass(PM, Fast) && PrintMachineCode) if (addPreEmitPass(PM, Fast) && PrintMachineCode)
PM.add(createMachineFunctionPrinterPass(cerr)); PM.add(createMachineFunctionPrinterPass(cerr));
if (AlignLoops) if (AlignLoops && !OptimizeForSize)
PM.add(createLoopAlignerPass()); PM.add(createLoopAlignerPass());
switch (FileType) { switch (FileType) {