2018-02-27 Richard Biener <rguenther@suse.de>
commit2538bd2e907580ba2d5ef3da8c0a0a9bb50c4d53
authorrguenth <rguenth@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 27 Feb 2018 15:25:33 +0000 (27 15:25 +0000)
committerrguenth <rguenth@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 27 Feb 2018 15:25:33 +0000 (27 15:25 +0000)
treecf62b5231022071ef9708e731b1392bba45cd82d
parent583ab4de1abbd4d79e72ddc2a992d3693c54088a
2018-02-27  Richard Biener  <rguenther@suse.de>

PR tree-optimization/84512
* tree-vect-loop.c (vect_compute_single_scalar_iteration_cost):
Do not use the estimate returned from record_stmt_cost for
the scalar iteration cost but sum properly using add_stmt_cost.

* gcc.dg/tree-ssa/pr84512.c: New testcase.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@258036 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/ChangeLog
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/tree-ssa/pr84512.c [new file with mode: 0644]
gcc/tree-vect-loop.c