[turbofan] Strength reduction of Word32And with Int32Mul.
authorBenedikt Meurer <bmeurer@chromium.org>
Mon, 2 Mar 2015 13:53:53 +0000 (14:53 +0100)
committerBenedikt Meurer <bmeurer@chromium.org>
Mon, 2 Mar 2015 13:54:09 +0000 (13:54 +0000)
commite1c2c9016e7033270fbc68b858591e51d1be560c
tree8dccd5bb5ab7be235d12066fefd92891af22a69b
parent7ee31a2348c67ee09664519818c8feb61c82fedf
[turbofan] Strength reduction of Word32And with Int32Mul.

- (x * (K << L)) & (-1 << L) => x * (K << L)
- ((K << L) * x) & (-1 << L) => x * (K << L)

R=dcarney@chromium.org

Review URL: https://codereview.chromium.org/972653002

Cr-Commit-Position: refs/heads/master@{#26942}
src/compiler/machine-operator-reducer.cc
test/unittests/compiler/machine-operator-reducer-unittest.cc