]> git.ipfire.org Git - thirdparty/gcc.git/commit
fix scalar BB vectorization costing
authorRichard Biener <rguenther@suse.de>
Fri, 3 Jul 2020 09:28:53 +0000 (11:28 +0200)
committerGiuliano Belinassi <giuliano.belinassi@usp.br>
Mon, 17 Aug 2020 16:16:00 +0000 (13:16 -0300)
commitfc51e4f395ec989e119b680215d9e8a8259a4a1f
tree226b81ae8132c72b554a0ec344bdaf91ed5affb5
parent8be87bb1600d2d8b01ff5ca5bce3d284b70236a8
fix scalar BB vectorization costing

We were costing the scalar pattern stmts rather than the scalar
original stmt and also not appropriately looking at the pattern
stmt for whether the stmt is vectorized.

2020-07-03  Richard Biener  <rguenther@suse.de>

* tree-vect-slp.c (vect_bb_slp_scalar_cost): Cost the
original non-pattern stmts, look at the pattern stmt
vectorization status.

* gcc.dg/vect/costmodel/x86_64/costmodel-vect-slp-2.c: New
testcase.
gcc/testsuite/gcc.dg/vect/costmodel/x86_64/costmodel-vect-slp-2.c [new file with mode: 0644]
gcc/tree-vect-slp.c