DeadBranchElim: Add dead case elimination
authorGregF <greg@LunarG.com>
Fri, 6 Oct 2017 02:37:00 +0000 (20:37 -0600)
committerDavid Neto <dneto@google.com>
Thu, 12 Oct 2017 15:44:05 +0000 (11:44 -0400)
commit63064bd9eba297a6c2d0cc45564c753e8757be27
treed31ccfb40adcc27184657bf93c1a7311f7f47199
parent99f20438f7a79ee6ab4e0c58faa97b529a7c9dbc
DeadBranchElim: Add dead case elimination

Expands dead branch elimination to eliminate dead switch cases. It also
changes dbe to eliminate orphaned merge blocks and recursively eliminate
any blocks thereby orphaned.
source/opt/dead_branch_elim_pass.cpp
source/opt/dead_branch_elim_pass.h
source/opt/instruction.h
test/opt/dead_branch_elim_test.cpp