]> git.ipfire.org Git - thirdparty/gcc.git/commit
stmt.c (emit_case_bit_tests): Remove.
authorSteven Bosscher <steven@gcc.gnu.org>
Mon, 2 Jul 2012 18:50:51 +0000 (18:50 +0000)
committerSteven Bosscher <steven@gcc.gnu.org>
Mon, 2 Jul 2012 18:50:51 +0000 (18:50 +0000)
commit531b10fcb0fe5c86576bda5fd201d8acc7db4525
tree2c4953f29803cb45e33d5e4c0629352930996603
parent8153b03d4ba0090c68bf08239a582852c51ee920
stmt.c (emit_case_bit_tests): Remove.

gcc/
* stmt.c (emit_case_bit_tests): Remove.
(expand_case): Remove expand_switch_using_bit_tests_p code.
* tree-switch-conversion.c (hoist_edge_and_branch_if_true): New.
(MAX_CASE_BIT_TESTS): Moved from stmt.c to here.
(lshift_cheap_p): Likewise.
(expand_switch_using_bit_tests_p): Likewise.
(struct case_bit_test): Likewise.
(case_bit_test_cmp): Likewise.
(emit_case_bit_tests): New implementation for GIMPLE.
(gen_inbound_check): Do not release post-dominator info here.
(process_switch): Reorder code.  Expand as bit tests if it
looks like a win.
(do_switchconv): Release post-dominator info here if something
changed.
(struct gimple_opt_pass): Verify more.
* tree.h (expand_switch_using_bit_tests_p): Remove prototype.

testsuite/
* gcc.dg/tree-ssa/pr36881.c: Fix test case to not expand as bit tests.

From-SVN: r189173
gcc/ChangeLog
gcc/stmt.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/tree-ssa/pr36881.c
gcc/tree-switch-conversion.c
gcc/tree.h