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 8d1631dfa2825e94db192f85d3418c3fcc2641cb..a15afadda2e42c725a008e4a9ed222ed980d2130 100644 |
--- a/src/compiler/mips/instruction-selector-mips.cc |
+++ b/src/compiler/mips/instruction-selector-mips.cc |
@@ -442,7 +442,7 @@ void InstructionSelector::VisitUint32MulHigh(Node* node) { |
void InstructionSelector::VisitInt32Div(Node* node) { |
MipsOperandGenerator g(this); |
Int32BinopMatcher m(node); |
- Emit(kMipsDiv, g.DefineAsRegister(node), g.UseRegister(m.left().node()), |
+ Emit(kMipsDiv, g.DefineSameAsFirst(node), g.UseRegister(m.left().node()), |
g.UseRegister(m.right().node())); |
} |
@@ -450,7 +450,7 @@ void InstructionSelector::VisitInt32Div(Node* node) { |
void InstructionSelector::VisitUint32Div(Node* node) { |
MipsOperandGenerator g(this); |
Int32BinopMatcher m(node); |
- Emit(kMipsDivU, g.DefineAsRegister(node), g.UseRegister(m.left().node()), |
+ Emit(kMipsDivU, g.DefineSameAsFirst(node), g.UseRegister(m.left().node()), |
g.UseRegister(m.right().node())); |
} |
@@ -1219,7 +1219,9 @@ InstructionSelector::SupportedMachineOperatorFlags() { |
MachineOperatorBuilder::kFloat64RoundTruncate | |
MachineOperatorBuilder::kFloat64RoundTiesEven; |
} |
- return flags | MachineOperatorBuilder::kWord32ShiftIsSafe | |
+ return flags | MachineOperatorBuilder::kInt32DivIsSafe | |
+ MachineOperatorBuilder::kUint32DivIsSafe | |
+ MachineOperatorBuilder::kWord32ShiftIsSafe | |
MachineOperatorBuilder::kFloat64Min | |
MachineOperatorBuilder::kFloat64Max | |
MachineOperatorBuilder::kFloat32Min | |