This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: Remove duplicated GOMP SIMD LANE code
- From: Richard Biener <richard dot guenther at gmail dot com>
- To: Alan Hayward <alan dot hayward at arm dot com>
- Cc: "gcc-patches at gcc dot gnu dot org" <gcc-patches at gcc dot gnu dot org>
- Date: Fri, 3 Jun 2016 13:03:38 +0200
- Subject: Re: Remove duplicated GOMP SIMD LANE code
- Authentication-results: sourceware.org; auth=none
- References: <D3761760 dot F3CF%alan dot hayward at arm dot com>
On Thu, Jun 2, 2016 at 6:03 PM, Alan Hayward <alan.hayward@arm.com> wrote:
> The IFN_GOMP_SIMD_LANE code in vectorizable_call is essentially a
> duplicate of
> the code in vectorizable_live_operation. They both replace all uses
> outside the
> loop with the constant VF - 1.
>
> Note that my patch to vectorize inductions that are live after the loop
> will
> also remove the IFN_GOMP_SIMD_LANE code in vectorizable_live_operation.
>
> This patch is required in order for the follow on optimisation (No need to
> Vectorise simple only-live stmts) to work.
>
> Tested with libgomp on x86 and aarch64
Ok.
Thanks,
Richard.
> gcc/
> * tree-vect-stmts.c (vectorizable_call) Remove GOMP_SIMD_LANE code.
>
> Alan.
>