| Index: src/compiler/machine-operator-reducer.cc
|
| diff --git a/src/compiler/machine-operator-reducer.cc b/src/compiler/machine-operator-reducer.cc
|
| index cfdfa3637b535172e462966973c98a4298b953f4..b566f489cb1114739f21823c0401ecc2fc84a1cc 100644
|
| --- a/src/compiler/machine-operator-reducer.cc
|
| +++ b/src/compiler/machine-operator-reducer.cc
|
| @@ -234,18 +234,6 @@ Reduction MachineOperatorReducer::Reduce(Node* node) {
|
| if (m.IsFoldable()) { // K < K => K
|
| return ReplaceBool(m.left().Value() < m.right().Value());
|
| }
|
| - if (m.left().IsInt32Sub() && m.right().Is(0)) { // x - y < 0 => x < y
|
| - Int32BinopMatcher msub(m.left().node());
|
| - node->ReplaceInput(0, msub.left().node());
|
| - node->ReplaceInput(1, msub.right().node());
|
| - return Changed(node);
|
| - }
|
| - if (m.left().Is(0) && m.right().IsInt32Sub()) { // 0 < x - y => y < x
|
| - Int32BinopMatcher msub(m.right().node());
|
| - node->ReplaceInput(0, msub.right().node());
|
| - node->ReplaceInput(1, msub.left().node());
|
| - return Changed(node);
|
| - }
|
| if (m.LeftEqualsRight()) return ReplaceBool(false); // x < x => false
|
| break;
|
| }
|
| @@ -254,18 +242,6 @@ Reduction MachineOperatorReducer::Reduce(Node* node) {
|
| if (m.IsFoldable()) { // K <= K => K
|
| return ReplaceBool(m.left().Value() <= m.right().Value());
|
| }
|
| - if (m.left().IsInt32Sub() && m.right().Is(0)) { // x - y <= 0 => x <= y
|
| - Int32BinopMatcher msub(m.left().node());
|
| - node->ReplaceInput(0, msub.left().node());
|
| - node->ReplaceInput(1, msub.right().node());
|
| - return Changed(node);
|
| - }
|
| - if (m.left().Is(0) && m.right().IsInt32Sub()) { // 0 <= x - y => y <= x
|
| - Int32BinopMatcher msub(m.right().node());
|
| - node->ReplaceInput(0, msub.right().node());
|
| - node->ReplaceInput(1, msub.left().node());
|
| - return Changed(node);
|
| - }
|
| if (m.LeftEqualsRight()) return ReplaceBool(true); // x <= x => true
|
| break;
|
| }
|
|
|