changeset 951:e71c61befd6d

Now that we're using LLVM 2.5, we can stop always running the CFGSimplification pass. The pass was originally added as a workaround for a LLVM 2.4 bug where debug info would reference labels that have been optimized away.
author Christian Kamm <kamm incasoftware de>
date Thu, 12 Feb 2009 18:39:03 +0100
parents 780530d1cad3
children 29da57670853
files gen/toobj.cpp
diffstat 1 files changed, 0 insertions(+), 6 deletions(-) [+]
line wrap: on
line diff
--- a/gen/toobj.cpp	Sun Feb 08 21:44:46 2009 +0100
+++ b/gen/toobj.cpp	Thu Feb 12 18:39:03 2009 +0100
@@ -196,12 +196,6 @@
         }
     }
 
-    // always run this pass to eliminate dead code that breaks debug info
-    llvm::PassManager pm;
-    pm.add(new llvm::TargetData(ir.module));
-    pm.add(llvm::createCFGSimplificationPass());
-    pm.run(*ir.module);
-
     // run optimizer
     ldc_optimize_module(ir.module, global.params.optimizeLevel, global.params.llvmInline);