Index: src/x64/lithium-x64.cc |
diff --git a/src/x64/lithium-x64.cc b/src/x64/lithium-x64.cc |
index 87fa90758380c29808deb2ccb686580c3828d875..6133bdeed976aa2205c6e98b5a7973d5f5af46ee 100644 |
--- a/src/x64/lithium-x64.cc |
+++ b/src/x64/lithium-x64.cc |
@@ -721,11 +721,10 @@ LInstruction* LChunkBuilder::DoShift(Token::Value op, |
// Shift operations can only deoptimize if we do a logical shift by 0 and |
// the result cannot be truncated to int32. |
bool does_deopt = false; |
- if (FLAG_opt_safe_uint32_operations) { |
- does_deopt = !instr->CheckFlag(HInstruction::kUint32); |
- } else { |
- bool may_deopt = (op == Token::SHR && constant_value == 0); |
- if (may_deopt) { |
+ if (op == Token::SHR && constant_value == 0) { |
+ if (FLAG_opt_safe_uint32_operations) { |
+ does_deopt = !instr->CheckFlag(HInstruction::kUint32); |
+ } else { |
for (HUseIterator it(instr->uses()); !it.Done(); it.Advance()) { |
if (!it.value()->CheckFlag(HValue::kTruncatingToInt32)) { |
does_deopt = true; |