From 73ee9c3fb1f15cbfb2f91a4f645834c94a76a949 Mon Sep 17 00:00:00 2001 From: Devang Patel Date: Tue, 25 Mar 2008 21:03:02 +0000 Subject: [PATCH] Do not align loops if optimizing for size. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@48794 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/CodeGen/LLVMTargetMachine.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/CodeGen/LLVMTargetMachine.cpp b/lib/CodeGen/LLVMTargetMachine.cpp index 33cf6b54891..04c59107f8c 100644 --- a/lib/CodeGen/LLVMTargetMachine.cpp +++ b/lib/CodeGen/LLVMTargetMachine.cpp @@ -135,7 +135,7 @@ LLVMTargetMachine::addPassesToEmitFile(PassManagerBase &PM, if (addPreEmitPass(PM, Fast) && PrintMachineCode) PM.add(createMachineFunctionPrinterPass(cerr)); - if (AlignLoops) + if (AlignLoops && !OptimizeForSize) PM.add(createLoopAlignerPass()); switch (FileType) { -- 2.11.0