forked from OSchip/llvm-project
Do not align loops if optimizing for size.
llvm-svn: 48794
This commit is contained in:
parent
246a52740b
commit
72cfe84f05
|
@ -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) {
|
||||||
|
|
Loading…
Reference in New Issue