gcc/
authorsteven <steven@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 27 Apr 2012 11:11:45 +0000 (11:11 +0000)
committersteven <steven@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 27 Apr 2012 11:11:45 +0000 (11:11 +0000)
commit11f2f3132e75080745d488ad33066f7b7189e3fd
tree5f1f64dd213b78b4b9122f2cd3032963c065bd34
parent487282d5a4f4548c4354e5ee53c5ca75119d3244
gcc/
* tree-switch-conversion.c (struct switch_conv_info): Add range_max,
reorganize some fields and update comments.  Rename bit_test_uniq
and bit_test_count to uniq resp. count.  Remove bit_test_bb.
(collect_switch_conv_info): New function, collects info about a
GIMPLE_SWITCH into a struct switch_conv_info.
(check_range): Simplify to use pre-recorded info.  Fix think-o in
range-branch ratio check.
(check_process_case): Remove function.
(check_all_empty_except_final): New function, verifies that all
non-final basic blocks are empty.
(process_switch): Simplify to use pre-recorded info.  Call
collect_switch_conv_info to do that.  Assert that degenerate switch
statements have been cleaned up.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@186901 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/ChangeLog
gcc/tree-switch-conversion.c