This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH] Fix PR70434, change FE IL for vector indexing
- From: Eric Botcazou <ebotcazou at adacore dot com>
- To: Richard Biener <rguenther at suse dot de>
- Cc: gcc-patches at gcc dot gnu dot org, jason at redhat dot com, polacek at redhat dot com
- Date: Mon, 23 May 2016 10:50:36 +0200
- Subject: Re: [PATCH] Fix PR70434, change FE IL for vector indexing
- Authentication-results: sourceware.org; auth=none
- References: <alpine dot LSU dot 2 dot 11 dot 1605231017570 dot 18037 at t29 dot fhfr dot qr>
> The following changes the IL the C family frontends emit for
> vector indexing from a mix of BIT_FIELD_REF (for constant indices)
> and pointer arithmetic + dereferences (for variable indicies) to
> a simple ARRAY_REF of the vector view-converted to a corresponding
> array type.
FWIW the Ada front-end (gigi) has always done that for its vector_type.
--
Eric Botcazou