[PATCH] Fix BIT_FIELD_REF type on vectorizable_live_operation created BFR (PR tree-optimization/78675)
Jeff Law
law@redhat.com
Mon Dec 5 18:09:00 GMT 2016
On 12/05/2016 09:52 AM, Jakub Jelinek wrote:
> Hi!
>
> For VECTOR_BOOLEAN_TYPE_P vectype the element type can have different
> precision from TYPE_SIZE, which is what we use for the bitsize.
> The following patch uses then some other integral type of that precision
> before it is actually converted to lhs_type (boolean_type_node).
>
> Bootstrapped/regtested on x86_64-linux and i686-linux, ok for trunk?
>
> 2016-12-05 Jakub Jelinek <jakub@redhat.com>
>
> PR tree-optimization/78675
> * tree-vect-loop.c (vectorizable_live_operation): For
> VECTOR_BOOLEAN_TYPE_P vectype use integral type with bitsize precision
> instead of TREE_TYPE (vectype) for the BIT_FIELD_REF.
>
> * gcc.target/i386/pr78675-1.c: New test.
> * gcc.target/i386/pr78675-2.c: New test.
OK.
jeff
More information about the Gcc-patches
mailing list