Don't do dead block elimination in fast mode.
authorJim Laskey <jlaskey@mac.com>
Tue, 24 Oct 2006 16:11:49 +0000 (16:11 +0000)
committerJim Laskey <jlaskey@mac.com>
Tue, 24 Oct 2006 16:11:49 +0000 (16:11 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@31155 91177308-0d34-0410-b5e6-96231b3b80d8

lib/CodeGen/LLVMTargetMachine.cpp

index 18ab21845684df386b1c42e9acdaf6ac804ddfa7..b12634ae28138cb2be133adf97bdf49c227a7e67 100644 (file)
@@ -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));