Mercurial > projects > ldc
comparison gen/optimizer.cpp @ 607:9526b29ae342
Fixed the optimizer thing, since llvm PR 2800 is already fixed, users need to upgrade LLVM to latest svn.
author | Tomas Lindquist Olsen <tomas.l.olsen@gmail.com> |
---|---|
date | Thu, 18 Sep 2008 21:07:35 +0200 |
parents | e235b80c92bc |
children | 6aaa3d3c1183 |
comparison
equal
deleted
inserted
replaced
606:c7fbcb6b923e | 607:9526b29ae342 |
---|---|
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 // this doesn't work, llvm PR 2800 | 44 pm.add(createCFGSimplificationPass()); |
45 //pm.add(createCFGSimplificationPass()); | |
46 pm.add(createPruneEHPass()); | 45 pm.add(createPruneEHPass()); |
47 } | 46 } |
48 | 47 |
49 // -inline | 48 // -inline |
50 if (doinline) { | 49 if (doinline) { |