Index: src/arm64/lithium-arm64.cc |
diff --git a/src/arm64/lithium-arm64.cc b/src/arm64/lithium-arm64.cc |
index bdf49bfff009e94a0c66c33bd7c30ac5d940fb6b..63ae4214ffc7283759c52d825cb4defe57b5e456 100644 |
--- a/src/arm64/lithium-arm64.cc |
+++ b/src/arm64/lithium-arm64.cc |
@@ -2132,6 +2132,8 @@ HBitwiseBinaryOperation* LChunkBuilder::CanTransformToShiftedOp(HValue* val, |
DCHECK(hleft->representation().Equals(hinstr->representation())); |
DCHECK(hright->representation().Equals(hinstr->representation())); |
+ if (hleft == hright) return NULL; |
+ |
if ((hright->IsConstant() && |
LikelyFitsImmField(hinstr, HConstant::cast(hright)->Integer32Value())) || |
(hinstr->IsCommutative() && hleft->IsConstant() && |