Index: src/compiler/ia32/instruction-selector-ia32.cc |
diff --git a/src/compiler/ia32/instruction-selector-ia32.cc b/src/compiler/ia32/instruction-selector-ia32.cc |
index c827c68a5ff3c69703c080b74e4c10f19988fa50..9e4db30308703afb6054521dd1de63e3d2ac48fe 100644 |
--- a/src/compiler/ia32/instruction-selector-ia32.cc |
+++ b/src/compiler/ia32/instruction-selector-ia32.cc |
@@ -1352,11 +1352,6 @@ void VisitWordCompare(InstructionSelector* selector, Node* node, |
cont); |
} |
- if (g.CanBeBetterLeftOperand(right)) { |
- if (!node->op()->HasProperty(Operator::kCommutative)) cont->Commute(); |
- std::swap(left, right); |
- } |
- |
return VisitCompare(selector, opcode, left, right, cont, |
node->op()->HasProperty(Operator::kCommutative)); |
} |