aboutsummaryrefslogtreecommitdiff
path: root/gcc/tree-vectorizer.h
diff options
context:
space:
mode:
authorRichard Biener <rguenther@suse.de>2020-10-29 12:21:41 +0100
committerRichard Biener <rguenther@suse.de>2020-10-29 13:09:49 +0100
commite4b3d2a4c25c72211aaa8894a62b60900f543689 (patch)
tree927da55d15f9c346457ea259ef7152cf0e861302 /gcc/tree-vectorizer.h
parenteb6b71b83c9f099808bc50c6a467a0caf4002e50 (diff)
downloadgcc-e4b3d2a4c25c72211aaa8894a62b60900f543689.zip
gcc-e4b3d2a4c25c72211aaa8894a62b60900f543689.tar.gz
gcc-e4b3d2a4c25c72211aaa8894a62b60900f543689.tar.bz2
Consistently pass the vector type for scalar SLP cost compute
This avoids randomly (based on whether the stmt is SLP_TREE_REPRESENTATIVE and not a pattern stmt) passing a vector type or NULL to the add_stmt_cost hook for scalar code cost compute. For example the x86 backend uses only the vector type to decide on the scalar computation mode which makes costing off. So the following explicitely passes the vector type and uses SLP_TREE_VECTYPE for this purpose. 2020-10-29 Richard Biener <rguenther@suse.de> * tree-vect-slp.c (vect_bb_slp_scalar_cost): Pass SLP_TREE_VECTYPE to record_stmt_cost.
Diffstat (limited to 'gcc/tree-vectorizer.h')
0 files changed, 0 insertions, 0 deletions