tree-optimization/39821 - fix cost classification for widening arith
authorRichard Biener <rguenther@suse.de>
Tue, 27 Jul 2021 07:24:57 +0000 (09:24 +0200)
committerRichard Biener <rguenther@suse.de>
Tue, 27 Jul 2021 08:41:43 +0000 (10:41 +0200)
commitc8ce54c6e67295b70052d1b9f9a2f7ce9e2f8f0d
tree0a88568bde651ecc434b12dba73b3fb442ed8f23
parent13586172d0b70c9d7ca464fc5a2a46a8532b06d7
tree-optimization/39821 - fix cost classification for widening arith

This adjusts the vectorizer to cost vector_stmt for widening
arithmetic instead of vec_promote_demote in the line of telling
the target that stmt_info->stmt is the meaningful piece we cost.

2021-07-27  Richard Biener  <rguenther@suse.de>

PR tree-optimization/39821
* tree-vect-stmts.c (vect_model_promotion_demotion_cost): Use
vector_stmt for widening arithmetic.
(vectorizable_conversion): Adjust.
gcc/tree-vect-stmts.c