Index: src/hydrogen-instructions.cc |
diff --git a/src/hydrogen-instructions.cc b/src/hydrogen-instructions.cc |
index 225b080d6e49150e272eddebcafb8e000697461f..c8e1e76f4ec967d16f84d080b1546db28be43b3b 100644 |
--- a/src/hydrogen-instructions.cc |
+++ b/src/hydrogen-instructions.cc |
@@ -1231,6 +1231,7 @@ HValue* HMod::Canonicalize() { |
HValue* HDiv::Canonicalize() { |
+ if (IsIdentityOperation(left(), right(), 1)) return left(); |
return this; |
} |