aboutsummaryrefslogtreecommitdiff
path: root/libgcc
diff options
context:
space:
mode:
authorHao Liu <hliu@os.amperecomputing.com>2023-07-06 10:03:47 +0800
committerHao Liu <hliu@os.amperecomputing.com>2023-07-06 10:06:01 +0800
commit7339e725b995912747c01c3ec80ce602512f45df (patch)
treeaa48dddc73b417862209f342bf1d7d765a25ec83 /libgcc
parent5158918aa211ee85176c058831707dbb3eaf0fb4 (diff)
downloadgcc-7339e725b995912747c01c3ec80ce602512f45df.zip
gcc-7339e725b995912747c01c3ec80ce602512f45df.tar.gz
gcc-7339e725b995912747c01c3ec80ce602512f45df.tar.bz2
tree-optimization/110474 - Vect: select small VF for epilog of unrolled loop
If a loop is unrolled during vectorization (i.e. suggested_unroll_factor > 1), the VFs of both main and epilog loop are enlarged. The epilog vect loop is specific for a loop with small iteration counts, so a large VF may hurt performance. This patch unscales the main loop VF by suggested_unroll_factor while selecting the epilog loop VF, so that it will be the same as vectorized loop without unrolling (i.e. suggested_unroll_factor = 1). gcc/ChangeLog: PR tree-optimization/110474 * tree-vect-loop.cc (vect_analyze_loop_2): unscale the VF by suggested unroll factor while selecting the epilog vect loop VF. gcc/testsuite/ChangeLog: * gcc.target/aarch64/pr110474.c: New testcase.
Diffstat (limited to 'libgcc')
0 files changed, 0 insertions, 0 deletions