From b3524ef5f427e19bddbb772c23b2f712382d489e Mon Sep 17 00:00:00 2001 From: Christian Kamm Date: Thu, 12 Feb 2009 18:39:03 +0100 Subject: [PATCH] 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. --- gen/toobj.cpp | 6 ------ 1 file changed, 6 deletions(-) diff --git a/gen/toobj.cpp b/gen/toobj.cpp index ea6e4db6..2e2e9632 100644 --- a/gen/toobj.cpp +++ b/gen/toobj.cpp @@ -196,12 +196,6 @@ void Module::genobjfile(int multiobj) } } - // 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);