Index: src/compiler/mips/instruction-selector-mips.cc |
diff --git a/src/compiler/mips/instruction-selector-mips.cc b/src/compiler/mips/instruction-selector-mips.cc |
index 3dcf70834951217f39126bf7a247a349f0db1891..86bf3a421b247df105229b31beb4a854e45a0bd6 100644 |
--- a/src/compiler/mips/instruction-selector-mips.cc |
+++ b/src/compiler/mips/instruction-selector-mips.cc |
@@ -173,10 +173,9 @@ static void VisitBinop(InstructionSelector* selector, Node* node, |
&inputs[1])) { |
inputs[0] = g.UseRegister(m.left().node()); |
input_count++; |
- } |
- if (has_reverse_opcode && |
- TryMatchImmediate(selector, &reverse_opcode, m.left().node(), |
- &input_count, &inputs[1])) { |
+ } else if (has_reverse_opcode && |
+ TryMatchImmediate(selector, &reverse_opcode, m.left().node(), |
+ &input_count, &inputs[1])) { |
inputs[0] = g.UseRegister(m.right().node()); |
opcode = reverse_opcode; |
input_count++; |