| Index: src/compiler/machine-operator-reducer.cc
|
| diff --git a/src/compiler/machine-operator-reducer.cc b/src/compiler/machine-operator-reducer.cc
|
| index a609a8095eb715d52fc7ceaa0a4624c492f5fb2d..5630bc8ef0ffae22a16159996867e751e3ab3884 100644
|
| --- a/src/compiler/machine-operator-reducer.cc
|
| +++ b/src/compiler/machine-operator-reducer.cc
|
| @@ -906,6 +906,12 @@ Reduction MachineOperatorReducer::ReduceWord32And(Node* node) {
|
| return reduction.Changed() ? reduction : Changed(node);
|
| }
|
| }
|
| + } else if (m.left().IsInt32Mul()) {
|
| + Int32BinopMatcher mleft(m.left().node());
|
| + if (mleft.right().IsMultipleOf(-mask)) {
|
| + // (x * (K << L)) & (-1 << L) => x * (K << L)
|
| + return Replace(mleft.node());
|
| + }
|
| }
|
| }
|
| return NoChange();
|
|
|