https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86871

--- Comment #9 from rsandifo at gcc dot gnu.org <rsandifo at gcc dot gnu.org> 
---
Author: rsandifo
Date: Tue Aug 14 09:24:45 2018
New Revision: 263528

URL: https://gcc.gnu.org/viewcvs?rev=263528&root=gcc&view=rev
Log:
Fix invalid assumption in vect_transform_stmt (PR 86871)

The handling of outer-loop uses of inner-loop definitions assumed
that anything that wasn't a PHI would be a gassign.  It's also
possible for it to be a gcall.

2018-08-14  Richard Sandiford  <richard.sandif...@arm.com>

gcc/
        Backport from mainline
        2018-08-09  Richard Sandiford  <richard.sandif...@arm.com>

        PR tree-optimization/86871
        * tree-vect-stmts.c (vect_transform_stmt): Use gimple_get_lhs
        instead of gimple_assign_lhs.

gcc/testsuite/
        Backport from mainline
        2018-08-09  Richard Sandiford  <richard.sandif...@arm.com>

        PR tree-optimization/86871
        * gcc.dg/vect/pr86871.c: New test.

Added:
    branches/gcc-8-branch/gcc/testsuite/gcc.dg/vect/pr86871.c
Modified:
    branches/gcc-8-branch/gcc/ChangeLog
    branches/gcc-8-branch/gcc/testsuite/ChangeLog
    branches/gcc-8-branch/gcc/tree-vect-stmts.c

Reply via email to