Chromium Code Reviews| Index: runtime/vm/compiler.cc |
| =================================================================== |
| --- runtime/vm/compiler.cc (revision 30464) |
| +++ runtime/vm/compiler.cc (working copy) |
| @@ -370,7 +370,11 @@ |
| DEBUG_ASSERT(flow_graph->VerifyUseLists()); |
| // Do optimizations that depend on the propagated type information. |
| - optimizer.Canonicalize(); |
| + if (optimizer.Canonicalize()) { |
| + // Invoke Canonicalize twice in order to fully canonicalize certains |
|
Kevin Millikin (Google)
2013/11/22 14:09:34
certains ==> certain, or just get rid of it becaus
|
| + // patterns like "if (a & const == 0) { }". |
| + optimizer.Canonicalize(); |
| + } |
| DEBUG_ASSERT(flow_graph->VerifyUseLists()); |
| BranchSimplifier::Simplify(flow_graph); |