mirror of
https://github.com/xomboverlord/ldc.git
synced 2026-01-17 21:33:13 +01:00
Removed useless assert in ArrayLiteralExp::toConstElem
Added second verification pass after optimization Commented an optimization pass out from lvl2, it turns the IR invalid, see llvm PR 2800
This commit is contained in:
@@ -41,7 +41,8 @@ void llvmdc_optimize_module(Module* m, char lvl, bool doinline)
|
||||
pm.add(createIPConstantPropagationPass());
|
||||
pm.add(createDeadArgEliminationPass());
|
||||
pm.add(createInstructionCombiningPass());
|
||||
pm.add(createCFGSimplificationPass());
|
||||
// this doesn't work, llvm PR 2800
|
||||
//pm.add(createCFGSimplificationPass());
|
||||
pm.add(createPruneEHPass());
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user