tree-optimization/102847 - properly cost VMAT_INVARIANT loads
authorRichard Biener <rguenther@suse.de>
Thu, 21 Oct 2021 08:24:03 +0000 (10:24 +0200)
committerRichard Biener <rguenther@suse.de>
Thu, 21 Oct 2021 09:21:18 +0000 (11:21 +0200)
commit7878981f1d44b4c9bb6c4a3137b37f06c725b73d
tree77986f7420d31ccd5d245c96c473a2354eb5ce82
parente633f82fb71817f3232688869c1eb59f60eb78ca
tree-optimization/102847 - properly cost VMAT_INVARIANT loads

The following adds proper costing of VMAT_INVARIANT loads, avoiding
to ask the target about the cost of an unsupported vector load cost
which we won't emit anyway.

2021-10-21  Richard Biener  <rguenther@suse.de>

PR tree-optimization/102847
* tree-vect-stmts.c (vect_model_load_cost): Explicitely
handle VMAT_INVARIANT as a splat in the prologue.
gcc/tree-vect-stmts.c