This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Committed] Fix PR tree-vect/3242: -ftree-vectorize ICEs in build2_stat when vectorizing POINTER_PLUS_EXPR


Hi,
  The problem here is that we are trying to create a POINTER_PLUS_EXPR on 
a vector which is not valid.  We just need to convert the code over to a 
PLUS_EXPR.

Committed as obvious after a bootstrap/test on i686-linux-gnu and 
build/test for spu-elf with no regressions on both.

Thanks,
Andrew Pinski

        * tree-vect-transform.c (vectorizable_operation): Convert
        POINTER_PLUS_EXPR over to PLUS_EXPR.

        * gcc.dg/vect/pr32421.c: New test.

Attachment: fixpr32421.diff.txt
Description: Text document


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]