comparison gen/optimizer.cpp @ 605:e235b80c92bc

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
author Tomas Lindquist Olsen <tomas.l.olsen@gmail.com>
date Tue, 16 Sep 2008 16:06:39 +0200
parents 665b81613475
children 9526b29ae342
comparison
equal deleted inserted replaced
604:a30fc28e8f23 605:e235b80c92bc
39 if (lvl >= 2) 39 if (lvl >= 2)
40 { 40 {
41 pm.add(createIPConstantPropagationPass()); 41 pm.add(createIPConstantPropagationPass());
42 pm.add(createDeadArgEliminationPass()); 42 pm.add(createDeadArgEliminationPass());
43 pm.add(createInstructionCombiningPass()); 43 pm.add(createInstructionCombiningPass());
44 pm.add(createCFGSimplificationPass()); 44 // this doesn't work, llvm PR 2800
45 //pm.add(createCFGSimplificationPass());
45 pm.add(createPruneEHPass()); 46 pm.add(createPruneEHPass());
46 } 47 }
47 48
48 // -inline 49 // -inline
49 if (doinline) { 50 if (doinline) {