Index: runtime/vm/intermediate_language.cc |
diff --git a/runtime/vm/intermediate_language.cc b/runtime/vm/intermediate_language.cc |
index 2007daa4c05d1df2a7197295e2e198364311f6f4..de3f3c2968a804567731ddbaa835e3a37f530264 100644 |
--- a/runtime/vm/intermediate_language.cc |
+++ b/runtime/vm/intermediate_language.cc |
@@ -1464,6 +1464,29 @@ Definition* BinaryMintOpInstr::Canonicalize(FlowGraph* flow_graph) { |
} |
+Definition* BinaryUint32OpInstr::Canonicalize(FlowGraph* flow_graph) { |
+ Definition* result = NULL; |
+ |
+ result = CanonicalizeCommutativeArithmetic(op_kind(), |
+ kMintCid, |
+ left(), |
+ right()); |
+ if (result != NULL) { |
+ return result; |
+ } |
+ |
+ result = CanonicalizeCommutativeArithmetic(op_kind(), |
+ kMintCid, |
+ right(), |
+ left()); |
+ if (result != NULL) { |
+ return result; |
+ } |
+ |
+ return this; |
+} |
+ |
+ |
// Optimizations that eliminate or simplify individual instructions. |
Instruction* Instruction::Canonicalize(FlowGraph* flow_graph) { |
return this; |