]> git.ipfire.org Git - thirdparty/gcc.git/commit
tree-switch-conversion.c (struct switch_conv_info): Add range_max, reorganize some...
authorSteven Bosscher <steven@gcc.gnu.org>
Fri, 27 Apr 2012 11:11:45 +0000 (11:11 +0000)
committerSteven Bosscher <steven@gcc.gnu.org>
Fri, 27 Apr 2012 11:11:45 +0000 (11:11 +0000)
commit886cd84f722ea56f91855aad6d70f88b9cee059a
tree5f1f64dd213b78b4b9122f2cd3032963c065bd34
parent07ab2b1b27330b441efdf35bf31f1b2c99dc4ebc
tree-switch-conversion.c (struct switch_conv_info): Add range_max, reorganize some fields and update comments.

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.

From-SVN: r186901
gcc/ChangeLog
gcc/tree-switch-conversion.c