| Index: src/ia32/lithium-ia32.cc
|
| diff --git a/src/ia32/lithium-ia32.cc b/src/ia32/lithium-ia32.cc
|
| index 026c2a43a0718050653fd0317fc1f9ab883c2606..8c8103f61996e9f9a4604dc32a7ce3f4c4b39066 100644
|
| --- a/src/ia32/lithium-ia32.cc
|
| +++ b/src/ia32/lithium-ia32.cc
|
| @@ -787,9 +787,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;
|
| @@ -808,8 +806,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;
|
| }
|
|
|