This is the mail archive of the
gcc-cvs@gcc.gnu.org
mailing list for the GCC project.
r263120 - in /trunk/gcc: ChangeLog tree-vect-lo...
- From: rsandifo at gcc dot gnu dot org
- To: gcc-cvs at gcc dot gnu dot org
- Date: Tue, 31 Jul 2018 14:21:32 -0000
- Subject: r263120 - in /trunk/gcc: ChangeLog tree-vect-lo...
Author: rsandifo
Date: Tue Jul 31 14:21:32 2018
New Revision: 263120
URL: https://gcc.gnu.org/viewcvs?rev=263120&root=gcc&view=rev
Log:
[05/46] Fix make_ssa_name call in vectorizable_reduction
The usual vectoriser dance to create new assignments is:
new_stmt = gimple_build_assign (vec_dest, ...);
new_temp = make_ssa_name (vec_dest, new_stmt);
gimple_assign_set_lhs (new_stmt, new_temp);
but one site in vectorizable_reduction used:
new_temp = make_ssa_name (vec_dest, new_stmt);
before creating new_stmt.
This method of creating statements probably needs cleaning up, but
that's for another day...
2018-07-31 Richard Sandiford <richard.sandiford@arm.com>
gcc/
* tree-vect-loop.c (vectorizable_reduction): Fix an instance in
which make_ssa_name was called with new_stmt before new_stmt
had been created.
Modified:
trunk/gcc/ChangeLog
trunk/gcc/tree-vect-loop.c