On Thu, Jun 28, 2018 at 9:06 PM Martin Liška <mli...@suse.cz> wrote:
>
> Hi.
>
> I'm sending patch for situation where we create a bit-test for
> entire switch. In that case split BB must be redirected so that
> the original switch is a dead code.
>
> Patch can bootstrap on ppc64le-redhat-linux and survives regression tests.
>
> Ready to be installed?

Testcase?

OK with one added.

Thanks,
Richard.

> Martin
>
> gcc/ChangeLog:
>
> 2018-06-28  Martin Liska  <mli...@suse.cz>
>
>         PR tree-optimization/86263
>         * tree-switch-conversion.c 
> (switch_decision_tree::try_switch_expansion):
>         Make edge redirection.
> ---
>  gcc/tree-switch-conversion.c | 8 ++++++--
>  1 file changed, 6 insertions(+), 2 deletions(-)
>
>

Reply via email to