Reviewers: dcarney,

Description:
[turbofan] Strength reduction for inline comparisons.

Perform strength reduction on machine operators with inline comparisons:

  CMP & 1 => CMP
  1 & CMP => CMP
  CMP << 31 >> 31 => CMP

Also strength reduce the following constructs:

  x + (0 - y) => x - y
  (0 - y) + x => x - y

[email protected]

Please review this at https://codereview.chromium.org/951903003/

Base URL: https://chromium.googlesource.com/v8/v8.git@master

Affected files (+304, -127 lines):
  M BUILD.gn
  M src/compiler/machine-operator-reducer.h
  M src/compiler/machine-operator-reducer.cc
  M src/compiler/node-matchers.h
  A src/compiler/node-matchers.cc
  M src/compiler/opcodes.h
  M test/unittests/compiler/machine-operator-reducer-unittest.cc
  M test/unittests/compiler/opcodes-unittest.cc
  M tools/gyp/v8.gyp


--
--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev
--- You received this message because you are subscribed to the Google Groups "v8-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to