Index: src/arm/lithium-arm.cc |
diff --git a/src/arm/lithium-arm.cc b/src/arm/lithium-arm.cc |
index f7286191a8f64f6c84dfa03f63081be38f31602a..b55679ee0147b30f702b6cff74ae879ad7811f44 100644 |
--- a/src/arm/lithium-arm.cc |
+++ b/src/arm/lithium-arm.cc |
@@ -733,9 +733,7 @@ LInstruction* LChunkBuilder::DoShift(Token::Value op, |
constant_value = constant->Integer32Value() & 0x1f; |
// Left shifts can deoptimize if we shift by > 0 and the result cannot be |
// truncated to smi. |
- if (instr->representation().IsSmi() && |
- op == Token::SHL && |
- constant_value > 0) { |
+ if (instr->representation().IsSmi() && constant_value > 0) { |
for (HUseIterator it(instr->uses()); !it.Done(); it.Advance()) { |
if (!it.value()->CheckFlag(HValue::kTruncatingToSmi)) { |
does_deopt = true; |
@@ -754,8 +752,7 @@ LInstruction* LChunkBuilder::DoShift(Token::Value op, |
does_deopt = !instr->CheckFlag(HInstruction::kUint32); |
} else { |
for (HUseIterator it(instr->uses()); !it.Done(); it.Advance()) { |
- if (!it.value()->CheckFlag(HValue::kTruncatingToInt32) && |
- !it.value()->CheckFlag(HValue::kTruncatingToSmi)) { |
+ if (!it.value()->CheckFlag(HValue::kTruncatingToInt32)) { |
does_deopt = true; |
break; |
} |