Index: src/compiler/mips64/instruction-selector-mips64.cc |
diff --git a/src/compiler/mips64/instruction-selector-mips64.cc b/src/compiler/mips64/instruction-selector-mips64.cc |
index d48007b858e4fe13d326272be3c75a03be54b8e9..5d5c3898cb145af02fe12a0ca4b99f60f35ee67e 100644 |
--- a/src/compiler/mips64/instruction-selector-mips64.cc |
+++ b/src/compiler/mips64/instruction-selector-mips64.cc |
@@ -269,10 +269,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++; |