aboutsummaryrefslogtreecommitdiff
path: root/gcc/fortran/interface.c
diff options
context:
space:
mode:
authorKewen Lin <linkw@linux.ibm.com>2020-07-31 07:49:39 -0500
committerGiuliano Belinassi <giuliano.belinassi@usp.br>2020-08-17 13:20:22 -0300
commit83190111bd80b91d1e5fc36dac444ebeabda49c6 (patch)
tree847e3b9525b6f750ceed6d95532668474e25307c /gcc/fortran/interface.c
parent1aeb0bd5c9862cb50596e8b71208d2173bb8d57b (diff)
downloadgcc-83190111bd80b91d1e5fc36dac444ebeabda49c6.zip
gcc-83190111bd80b91d1e5fc36dac444ebeabda49c6.tar.gz
gcc-83190111bd80b91d1e5fc36dac444ebeabda49c6.tar.bz2
vect: Don't consider branch costs if no peeled iterations
Currently vectorizer cost modeling counts branch taken costs for prologue and epilogue if the number of iterations is unknown. But it isn't sensible if there are no peeled iterations. This patch is to guard them under peel_iters_prologue > 0 or peel_iters_epilogue > 0. Bootstrapped/regtested on powerpc64le-linux-gnu and aarch64-linux-gnu. gcc/ChangeLog: * tree-vect-loop.c (vect_get_known_peeling_cost): Don't consider branch taken costs for prologue and epilogue if they don't exist. (vect_estimate_min_profitable_iters): Likewise. gcc/testsuite/ChangeLog: * gcc.target/aarch64/sve/cost_model_2.c: Adjust due to cost model change.
Diffstat (limited to 'gcc/fortran/interface.c')
0 files changed, 0 insertions, 0 deletions