aboutsummaryrefslogtreecommitdiff
path: root/gcc/tree-vectorizer.h
diff options
context:
space:
mode:
authorKewen Lin <linkw@linux.ibm.com>2023-05-21 21:19:02 -0500
committerKewen Lin <linkw@linux.ibm.com>2023-05-21 21:19:02 -0500
commit285e0bb95dd3edf3e3312f0e0ee940594f46f77d (patch)
tree1dce3e8059b8645be12d10798b9e4cd1d386566c /gcc/tree-vectorizer.h
parent4579954f25020f0b39361ab6ec0c8876fda27041 (diff)
downloadgcc-285e0bb95dd3edf3e3312f0e0ee940594f46f77d.zip
gcc-285e0bb95dd3edf3e3312f0e0ee940594f46f77d.tar.gz
gcc-285e0bb95dd3edf3e3312f0e0ee940594f46f77d.tar.bz2
vect: Refactor code for index == count in vect_transform_slp_perm_load_1
This patch is to refactor the handlings for the case (index == count) in a loop of vect_transform_slp_perm_load_1, in order to prepare a subsequent adjustment on *nperm. This patch doesn't have any functional changes. Basically this is to rewrite two if below: if (index == count && !noop_p) { // A ... // ++*n_perms; } if (index == count) { if (!analyze_only) { if (!noop_p) // B1 ... // B2 ... for ... { if (!noop_p) // B3 building VEC_PERM_EXPR else // B4 building nothing (no uses for B2 and its seq) } } // B5 } into one hunk below: if (index == count) { if (!noop_p) { // A ... // ++*n_perms; if (!analyze_only) { // B1 ... // B2 ... for ... // B3 building VEC_PERM_EXPR } } else if (!analyze_only) { // no B2 since no any further uses here. for ... // B4 building nothing } // B5 ... } gcc/ChangeLog: * tree-vect-slp.cc (vect_transform_slp_perm_load_1): Refactor the handling for the case index == count.
Diffstat (limited to 'gcc/tree-vectorizer.h')
0 files changed, 0 insertions, 0 deletions