On Fri, Oct 12, 2018 at 6:36 PM Renlin Li <renlin...@foss.arm.com> wrote:
>
> Hi all,
>
> ifcvt will created versioned loop and it will permissively generate
> scalar COND_<OP> ifn.
>
> If in the loop vectorize pass, COND_<OP> could not get vectorized,
> the if-converted loop should be abandoned when the target doesn't support
> such ifn.
>
> As currently, COND_<OP> is only used by aarch64 sve extension,
> I only run the aarch64-sve testsuites, no change to the result.
>
> Okay to commit?

OK.

Richard.

> Regards,
> Renlin
>
>
> gcc/ChangeLog:
>
> 2018-10-12  Renlin Li  <renlin...@arm.com>
>
>         PR target/87563
>         * tree-vectorizer.c (try_vectorize_loop_1): Don't use
>         if-conversioned loop when it contains ifn with types not
>         supported by backend.
>         * internal-fn.c (expand_direct_optab_fn): Add an assert.
>         (direct_internal_fn_supported_p): New helper function.
>         * internal-fn.h (direct_internal_fn_supported_p): Declare.
>
> gcc/testsuite/ChangeLog:
>
> 2018-10-12  Renlin Li  <renlin...@arm.com>
>
>         PR target/87563
>         * gcc.target/aarch64/sve/pr87563.c: New.

Reply via email to