re PR tree-optimization/69297 (Performance regression after r230020)
authorRichard Biener <rguenther@suse.de>
Mon, 18 Jan 2016 14:25:56 +0000 (14:25 +0000)
committerRichard Biener <rguenth@gcc.gnu.org>
Mon, 18 Jan 2016 14:25:56 +0000 (14:25 +0000)
commitb555a2e4c36b415edb82d8e6d31b8735c62d2bfb
tree3865217f6caa55bd7700da18c5f76c5d1d7935ba
parent305708cedd962831b648783936cb6991dfdeb87d
re PR tree-optimization/69297 (Performance regression after r230020)

2016-01-18  Richard Biener  <rguenther@suse.de>

PR tree-optimization/69297
* tree-vect-slp.c (vect_bb_slp_scalar_cost): Count each scalar
stmt at most once.
(vect_bb_vectorization_profitable_p): Clear visited flag again.

* gcc.dg/vect/costmodel/x86_64/costmodel-pr69297.c: New testcase.

From-SVN: r232519
gcc/ChangeLog
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/vect/costmodel/x86_64/costmodel-pr69297.c [new file with mode: 0644]
gcc/tree-vect-slp.c