]> gcc.gnu.org Git - gcc.git/commit
tree-optimization/98526 - fix vectorizer reduction cost
authorRichard Biener <rguenther@suse.de>
Mon, 11 Jan 2021 10:47:46 +0000 (11:47 +0100)
committerRichard Biener <rguenther@suse.de>
Wed, 3 Mar 2021 09:49:05 +0000 (10:49 +0100)
commit4f0d8562af81709db39d7899993dd2bf98af28ec
treef08a05d3f0414a22439417297f7cb30cc54a7a48
parent9272936ac5fac472a3690145572afa6ed19eaa8e
tree-optimization/98526 - fix vectorizer reduction cost

This fixes a double-counting in the reduction cost when vectorizing
the reduction through the regular vectorizable_* functions.

2021-01-11  Richard Biener  <rguenther@suse.de>

PR tree-optimization/98526
* tree-vect-loop.c (vect_model_reduction_cost): Remove costing
of the actual reduction op for the regular case.
(vectorizable_reduction): Cost the stmts
vect_transform_reduction produces here.

(cherry picked from commit 04bff1bbfc11a974342c0eb0c0d65d902e36e82e)
gcc/tree-vect-loop.c
This page took 0.054835 seconds and 5 git commands to generate.