aboutsummaryrefslogtreecommitdiff
path: root/gcc/tree-vectorizer.c
diff options
context:
space:
mode:
authorRichard Sandiford <richard.sandiford@arm.com>2021-07-13 10:17:42 +0100
committerRichard Sandiford <richard.sandiford@arm.com>2021-07-13 10:17:42 +0100
commit7670b6633e51afbbc4b3c8a5775accf7f2d887af (patch)
tree095c86103bb9af7376779c16be9b9d796845a657 /gcc/tree-vectorizer.c
parent221bdb333b0917c927aec4d367a72e3667087d7a (diff)
downloadgcc-7670b6633e51afbbc4b3c8a5775accf7f2d887af.zip
gcc-7670b6633e51afbbc4b3c8a5775accf7f2d887af.tar.gz
gcc-7670b6633e51afbbc4b3c8a5775accf7f2d887af.tar.bz2
vect: Simplify get_initial_def_for_reduction
After previous patches, we can now easily provide the neutral op as an argument to get_initial_def_for_reduction. This in turn allows the adjustment calculation to be moved outside of get_initial_def_for_reduction, which is the main motivation of the patch. gcc/ * tree-vect-loop.c (get_initial_def_for_reduction): Remove adjustment handling. Take the neutral value as an argument, in place of the code argument. (vect_transform_cycle_phi): Update accordingly. Handle the initial values of cond reductions separately from code reductions. Choose the adjustment here rather than in get_initial_def_for_reduction. Sink the splat of vec_initial_def.
Diffstat (limited to 'gcc/tree-vectorizer.c')
0 files changed, 0 insertions, 0 deletions