[turbofan] add some simplifications in the machine operator reducer
authorJacob.Bramley@arm.com <Jacob.Bramley@arm.com>
Mon, 29 Sep 2014 08:30:17 +0000 (08:30 +0000)
committerJacob.Bramley@arm.com <Jacob.Bramley@arm.com>
Mon, 29 Sep 2014 08:30:17 +0000 (08:30 +0000)
commit89ee8ec1b15b3b4583bdb71e822188e0ae0d4afd
tree5e8b7b49772d3f7ed03c82923851aa3abda756d1
parent40a9b4363ef547745ba2c57d6a4c622b023e72d3
[turbofan] add some simplifications in the machine operator reducer

Simplify the '+', '-' and '%' operators with some basic constants (0, 1 or NaN).

R=titzer@chromium.org, bmeurer@chromium.org, titzer@google.com

BUG=

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

git-svn-id: https://v8.googlecode.com/svn/branches/bleeding_edge@24270 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
src/compiler/machine-operator-reducer.cc
test/cctest/compiler/test-machine-operator-reducer.cc