| Index: src/compiler/machine-operator-reducer.cc
|
| diff --git a/src/compiler/machine-operator-reducer.cc b/src/compiler/machine-operator-reducer.cc
|
| index 3a723c3196942b425bfb64f50c3db3eb32133e81..4aeeeeacfcf2670d7b19059eeceeaa40dae2616f 100644
|
| --- a/src/compiler/machine-operator-reducer.cc
|
| +++ b/src/compiler/machine-operator-reducer.cc
|
| @@ -264,6 +264,14 @@ Reduction MachineOperatorReducer::Reduce(Node* node) {
|
| return ReplaceBool(m.left().Value() < m.right().Value());
|
| }
|
| if (m.LeftEqualsRight()) return ReplaceBool(false); // x < x => false
|
| + if (m.left().IsWord32Or() && m.right().Is(0)) {
|
| + // (x | K) < 0 => true or (K | x) < 0 => true iff K < 0
|
| + Int32BinopMatcher mleftmatcher(m.left().node());
|
| + if (mleftmatcher.left().IsNegative() ||
|
| + mleftmatcher.right().IsNegative()) {
|
| + return ReplaceBool(true);
|
| + }
|
| + }
|
| break;
|
| }
|
| case IrOpcode::kInt32LessThanOrEqual: {
|
|
|