]> git.ipfire.org Git - thirdparty/gcc.git/commit
gcc/
authorsteven <steven@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 2 Jul 2012 18:50:51 +0000 (18:50 +0000)
committersteven <steven@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 2 Jul 2012 18:50:51 +0000 (18:50 +0000)
commit78b7a67520737f2e029383dd5a89ba8c1c4a3ef9
tree2c4953f29803cb45e33d5e4c0629352930996603
parentaadbf54e8e085eb763d6b2d8667fb084f02b5ce1
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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@189173 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/ChangeLog
gcc/stmt.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/tree-ssa/pr36881.c
gcc/tree-switch-conversion.c
gcc/tree.h