This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH 2/3] Fix probability for bit-tests.


On 08/03/2018 08:10 AM, marxin wrote:
> The patch set even probability to bit test based on number of
> cases which are handled on each edge.
> 
> gcc/ChangeLog:
> 
> 2018-08-06  Martin Liska  <mliska@suse.cz>
> 
> 	* tree-switch-conversion.c (bit_test_cluster::find_bit_tests):
>         Add new argument to bit_test_cluster constructor.
> 	(bit_test_cluster::emit): Set bits really number of values
>         handlel by a test.
> 	(bit_test_cluster::hoist_edge_and_branch_if_true): Add
>         probability argument.
> 	* tree-switch-conversion.h (struct bit_test_cluster):
>         Add m_handles_entire_switch.
> 
> gcc/testsuite/ChangeLog:
> 
> 2018-08-06  Martin Liska  <mliska@suse.cz>
> 
> 	* gcc.dg/tree-ssa/switch-2.c: New test.
OK
jeff


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]