This is the mail archive of the
gcc-cvs@gcc.gnu.org
mailing list for the GCC project.
r186901 - in /trunk/gcc: ChangeLog tree-switch-...
- From: steven at gcc dot gnu dot org
- To: gcc-cvs at gcc dot gnu dot org
- Date: Fri, 27 Apr 2012 11:11:45 -0000
- Subject: r186901 - in /trunk/gcc: ChangeLog tree-switch-...
Author: steven
Date: Fri Apr 27 11:11:45 2012
New Revision: 186901
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=186901
Log:
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.
Modified:
trunk/gcc/ChangeLog
trunk/gcc/tree-switch-conversion.c