[turbofan] Introduce CommonOperatorReducer.
authorBenedikt Meurer <bmeurer@chromium.org>
Mon, 22 Dec 2014 13:06:34 +0000 (14:06 +0100)
committerBenedikt Meurer <bmeurer@chromium.org>
Mon, 22 Dec 2014 13:06:43 +0000 (13:06 +0000)
commitee98a1d76023e782750eaf9057b1520f0e6fb9d3
tree4aa60a6081c97d680ae50902d1a30fa634b7afb2
parent096e1972cd4f2b44130f51d4efe4b3a7b3c4f56f
[turbofan] Introduce CommonOperatorReducer.

The CommonOperatorReducer currently takes care of redundant Phis,
EffectPhis and Selects. This functionality overlaps with ControlReducer,
but is required to make certain optimizations effective, since the
ControlReducer only runs really early and really late in the pipeline
and therefore other reducers aren't reapplied properly after redundant
phi/select elimination.

TEST=unittests
R=hpayer@chromium.org

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

Cr-Commit-Position: refs/heads/master@{#25922}
BUILD.gn
src/compiler/common-operator-reducer.cc [new file with mode: 0644]
src/compiler/common-operator-reducer.h [new file with mode: 0644]
src/compiler/pipeline.cc
test/unittests/compiler/common-operator-reducer-unittest.cc [new file with mode: 0644]
test/unittests/unittests.gyp
tools/gyp/v8.gyp