MIPS: [turbofan] Optimize certain chains of Branch into a Switch.
authorbalazs.kilvady <balazs.kilvady@imgtec.com>
Tue, 17 Feb 2015 20:44:00 +0000 (12:44 -0800)
committerCommit bot <commit-bot@chromium.org>
Tue, 17 Feb 2015 20:44:12 +0000 (20:44 +0000)
commit97a4a21a6acfd77bbdf2b027bfa5c459b54acbdd
tree8f3eb66db2b1cbf0654f54bc471d866248f68090
parente22c41eb0d1e601666c74d44c210aad361b4ef16
MIPS: [turbofan] Optimize certain chains of Branch into a Switch.

Port acd9c46ca7a0ada723d717f2545fd484c824eaa2

Original commit message:
This adds a new ControlFlowOptimizer that - for now - recognizes chains
of Branches generated by the SwitchBuilder for a subset of javascript
switches into Switch nodes. Those Switch nodes are then lowered to
either table or lookup switches.

Also rename Case to IfValue (and introduce IfDefault) for consistency.

BUG=v8:3872
LOG=n

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

Cr-Commit-Position: refs/heads/master@{#26707}
src/compiler/mips/code-generator-mips.cc
src/compiler/mips/instruction-selector-mips.cc
src/compiler/mips64/code-generator-mips64.cc
src/compiler/mips64/instruction-selector-mips64.cc