]> git.ipfire.org Git - thirdparty/gcc.git/commit
vect: Pass reduc_info to get_initial_defs_for_reduction
authorRichard Sandiford <richard.sandiford@arm.com>
Tue, 13 Jul 2021 09:17:39 +0000 (10:17 +0100)
committerRichard Sandiford <richard.sandiford@arm.com>
Tue, 13 Jul 2021 09:17:39 +0000 (10:17 +0100)
commit826c452e571884fcabbc73863eef5120e683d034
treef2fd7ce0d772c743c49a603ac4b3cb7dde290f78
parentd592920c89973acd8d9f5b1f6b0526036ce63ccb
vect: Pass reduc_info to get_initial_defs_for_reduction

This patch passes the reduc_info to get_initial_defs_for_reduction,
so that the function can get general information from there rather
than from the first SLP statement.  This isn't a win on its own,
but it becomes important with later patches.

gcc/
* tree-vect-loop.c (get_initial_defs_for_reduction): Take the
reduc_info as an additional parameter.
(vect_transform_cycle_phi): Update accordingly.
gcc/tree-vect-loop.c