[turbofan] Move graph trimming functionality to dedicated GraphTrimmer.
authorbmeurer <bmeurer@chromium.org>
Wed, 17 Jun 2015 10:56:27 +0000 (03:56 -0700)
committerCommit bot <commit-bot@chromium.org>
Wed, 17 Jun 2015 10:56:37 +0000 (10:56 +0000)
commit80a6e53935a8205f0b5032759ecdf8aecb8d2a38
treedb56da25f0cc320d658eefbf52812eba453c6329
parente61a957b2a9726294cdd2802a6a2b6e3a9ef657d
[turbofan] Move graph trimming functionality to dedicated GraphTrimmer.

Up until now that was still mixed with control reduction in the
ControlReducer. This separation allows us to remove the horrible
Reducer::Finish hack and also do graph trimming at more appropriate
places in the pipeline (i.e. trim dead nodes after generic lowering,
which can also make nodes dead).

R=jarin@chromium.org,mstarzinger@chromium.org

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

Cr-Commit-Position: refs/heads/master@{#29077}
15 files changed:
BUILD.gn
src/compiler/control-reducer.cc
src/compiler/control-reducer.h
src/compiler/graph-reducer.cc
src/compiler/graph-reducer.h
src/compiler/graph-trimmer.cc [new file with mode: 0644]
src/compiler/graph-trimmer.h [new file with mode: 0644]
src/compiler/node-marker.cc
src/compiler/node-marker.h
src/compiler/osr.cc
src/compiler/pipeline.cc
test/cctest/compiler/test-control-reducer.cc
test/unittests/compiler/graph-trimmer-unittest.cc [new file with mode: 0644]
test/unittests/unittests.gyp
tools/gyp/v8.gyp