vect: Ensure reduc_inputs always have vectype
authorRichard Sandiford <richard.sandiford@arm.com>
Tue, 13 Jul 2021 09:17:38 +0000 (10:17 +0100)
committerRichard Sandiford <richard.sandiford@arm.com>
Tue, 13 Jul 2021 09:17:38 +0000 (10:17 +0100)
commit32b8edd5297c9193b81122fdd55316fcbf0959dc
treec26baf3e12275a9c2770dfca606c26d4fe317b9c
parent81ad6bfc078ca36a42446e2f2295102ffaac9ee1
vect: Ensure reduc_inputs always have vectype

Vector reduction accumulators can differ in signedness from the
final scalar result.  The conversions to handle that case were
distributed through vect_create_epilog_for_reduction; this patch
does the conversion up-front instead.

gcc/
* tree-vect-loop.c (vect_create_epilog_for_reduction): Convert
the phi results to vectype after creating them.  Remove later
conversion code that thus becomes redundant.
gcc/tree-vect-loop.c