[turbofan] Remove another ineffective optimization from the ControlReducer.
authorbmeurer <bmeurer@chromium.org>
Wed, 17 Jun 2015 12:50:33 +0000 (05:50 -0700)
committerCommit bot <commit-bot@chromium.org>
Wed, 17 Jun 2015 12:50:45 +0000 (12:50 +0000)
commitafc2fb26a151425fac7dd290108a1a91ff3836be
tree4a667b6d1747d923d2b664e3c5c1c61d7dfe6cfb
parentf28f16c916e3d5c71473144f2d460364da63df28
[turbofan] Remove another ineffective optimization from the ControlReducer.

The condition of a Branch or Select can never be a NumberConstant,
because the resulting graph would be invalid, so we don't need to
optimize this case. It can only ever be a tagged boolean or an untagged
bit.

Drive-by-fix: Test the interesting cases in the unit tests instead.

R=jarin@chromium.org

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

Cr-Commit-Position: refs/heads/master@{#29089}
src/compiler/control-reducer.cc
test/cctest/compiler/test-control-reducer.cc
test/cctest/compiler/test-osr.cc