On Sun, May 17, 2026 at 12:03:22PM -0700, Andrew Pinski wrote:
> The label for case_bit_test is only used to stability
> the qsort but the target bb here could be used for that.
> So let's remove the label from case_bit_test and stability
> the qsort by using the target bb's index.
> 
> Bootstrapped and tested on x86_64-linux-gnu.
> 
> gcc/ChangeLog:
> 
>       * tree-switch-conversion.cc (case_bit_test::cmp): Stability
>       based on the index of the target bb instead.
>       (bit_test_cluster::emit): Remove setting of the label field
>       of case_bit_test.
>       * tree-switch-conversion.h (case_bit_test): Remove the label
>       field.

Can't multiple labels appear in the same bb?

        Jakub

Reply via email to