aboutsummaryrefslogtreecommitdiff
path: root/gcc/expr.c
diff options
context:
space:
mode:
authorKewen Lin <linkw@linux.ibm.com>2021-05-10 23:01:15 -0500
committerKewen Lin <linkw@linux.ibm.com>2021-05-11 00:09:37 -0500
commit1866182f6cf338880c68225d9de571b787b6abcd (patch)
tree76a6c69d797a28284d66639a55fcef34c0d21bee /gcc/expr.c
parent096f8215d2172ca4177cb26035e748d8f182fc8f (diff)
downloadgcc-1866182f6cf338880c68225d9de571b787b6abcd.zip
gcc-1866182f6cf338880c68225d9de571b787b6abcd.tar.gz
gcc-1866182f6cf338880c68225d9de571b787b6abcd.tar.bz2
rs6000: Guard density_test only for vector version
This patch teaches rs6000_density_test to only care about the vector version cost calculation and early return when calculating the single scalar iteration cost. Bootstrapped/regtested on powerpc64le-linux-gnu P9. gcc/ChangeLog: * config/rs6000/rs6000.c (struct rs6000_cost_data): New member costing_for_scalar. (rs6000_density_test): Early return if costing_for_scalar is true. (rs6000_init_cost): Init costing_for_scalar of rs6000_cost_data.
Diffstat (limited to 'gcc/expr.c')
0 files changed, 0 insertions, 0 deletions