Chromium Code Reviews| Index: runtime/vm/compiler.cc |
| =================================================================== |
| --- runtime/vm/compiler.cc (revision 16846) |
| +++ runtime/vm/compiler.cc (working copy) |
| @@ -210,8 +210,7 @@ |
| flow_graph->ComputeUseLists(); |
| // Do optimizations that depend on the propagated type information. |
| - // TODO(srdjan): Should this be called CanonicalizeComputations? |
| - optimizer.OptimizeComputations(); |
| + optimizer.CanonicalizeComputations(); |
|
Kevin Millikin (Google)
2013/01/10 10:35:00
This name is fine, but you could also call it "Can
Florian Schneider
2013/01/10 13:18:41
Done.
|
| // Unbox doubles. |
| flow_graph->ComputeUseLists(); |
| @@ -224,7 +223,7 @@ |
| if (FLAG_constant_propagation) { |
| ConstantPropagator::Optimize(flow_graph); |
| // A canonicalization pass to remove e.g. smi checks on smi constants. |
| - optimizer.OptimizeComputations(); |
| + optimizer.CanonicalizeComputations(); |
| } |
| if (FLAG_common_subexpression_elimination) { |
| if (DominatorBasedCSE::Optimize(flow_graph)) { |