This is the mail archive of the
gcc-cvs@gcc.gnu.org
mailing list for the GCC project.
r263447 - in /trunk/gcc: ChangeLog testsuite/Ch...
- From: rsandifo at gcc dot gnu dot org
- To: gcc-cvs at gcc dot gnu dot org
- Date: Thu, 09 Aug 2018 14:37:25 -0000
- Subject: r263447 - in /trunk/gcc: ChangeLog testsuite/Ch...
Author: rsandifo
Date: Thu Aug 9 14:37:24 2018
New Revision: 263447
URL: https://gcc.gnu.org/viewcvs?rev=263447&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-08 Richard Sandiford <richard.sandiford@arm.com>
gcc/
PR tree-optimization/86871
* tree-vect-stmts.c (vect_transform_stmt): Use gimple_get_lhs
instead of gimple_assign_lhs.
gcc/testsuite/
PR tree-optimization/86871
* gcc.dg/vect/pr86871.c: New test.
Added:
trunk/gcc/testsuite/gcc.dg/vect/pr86871.c
Modified:
trunk/gcc/ChangeLog
trunk/gcc/testsuite/ChangeLog
trunk/gcc/tree-vect-stmts.c