From: Jim Laskey Date: Tue, 24 Oct 2006 16:11:49 +0000 (+0000) Subject: Don't do dead block elimination in fast mode. X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=62d07d6acef9f5fd807b98a509d164bd3d6f0187;p=oota-llvm.git Don't do dead block elimination in fast mode. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@31155 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/CodeGen/LLVMTargetMachine.cpp b/lib/CodeGen/LLVMTargetMachine.cpp index 18ab2184568..b12634ae281 100644 --- a/lib/CodeGen/LLVMTargetMachine.cpp +++ b/lib/CodeGen/LLVMTargetMachine.cpp @@ -64,7 +64,8 @@ bool LLVMTargetMachine::addPassesToEmitFile(FunctionPassManager &PM, PM.add(createPrologEpilogCodeInserter()); // Branch folding must be run after regalloc and prolog/epilog insertion. - PM.add(createBranchFoldingPass()); + if (!Fast) + PM.add(createBranchFoldingPass()); if (PrintMachineCode) // Print the register-allocated code PM.add(createMachineFunctionPrinterPass(&std::cerr));