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.
This commit is contained in:
Christian Kamm
2009-02-12 18:39:03 +01:00
parent a4ca550874
commit b3524ef5f4

View File

@@ -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);