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] Fix bit-test expansion for single cluster (PR tree-optimization/86263).


On Thu, Jun 28, 2018 at 9:06 PM Martin Liška <mliska@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  <mliska@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(-)
>
>


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