This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: SLP for vectors
- From: Richard Biener <richard dot guenther at gmail dot com>
- To: Marc Glisse <marc dot glisse at inria dot fr>
- Cc: gcc-patches at gcc dot gnu dot org
- Date: Tue, 2 Apr 2013 14:47:55 +0200
- Subject: Re: SLP for vectors
- References: <alpine dot DEB dot 2 dot 02 dot 1301271518150 dot 28994 at stedding dot saclay dot inria dot fr> <CAFiYyc336qhuVSRqnxv_yV+zBAr6O+u4MVB0xA-V+iEURbfQeQ at mail dot gmail dot com> <alpine dot DEB dot 2 dot 02 dot 1301300027360 dot 3971 at laptop-mg dot saclay dot inria dot fr> <CAFiYyc30gKXWi840WWesybvG-Wr_v3FupTySM51i-YOLYp-QSg at mail dot gmail dot com> <alpine dot DEB dot 2 dot 02 dot 1303301620340 dot 10575 at stedding dot saclay dot inria dot fr> <alpine dot DEB dot 2 dot 02 dot 1304011738070 dot 3880 at laptop-mg dot saclay dot inria dot fr>
On Mon, Apr 1, 2013 at 5:52 PM, Marc Glisse <marc.glisse@inria.fr> wrote:
> On Sat, 30 Mar 2013, Marc Glisse wrote:
>
>> * tree-flow-inline.h (get_addr_base_and_unit_offset_1): Handle
>> BIT_FIELD_REF.
>
>
> I wrote a safer version of this for PR52436:
That variant is ok - please test and commit separately.
Thanks,
Richard.
>
>
> case BIT_FIELD_REF:
> - return NULL_TREE;
> + {
> + HOST_WIDE_INT this_off = TREE_INT_CST_LOW (TREE_OPERAND (exp,
> 2));
> + if (this_off % BITS_PER_UNIT)
> + return NULL_TREE;
> + byte_offset += this_off / BITS_PER_UNIT;
> + }
> + break;