2013-10-01 Richard Biener <rguenther@suse.de>
commitf59ae127f3b98910e29c4b09abc9c330430f8d51
authorrguenth <rguenth@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 1 Oct 2013 07:41:10 +0000 (1 07:41 +0000)
committerrguenth <rguenth@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 1 Oct 2013 07:41:10 +0000 (1 07:41 +0000)
tree4364870cc24e53f1deed7befaaf0e34bc35fad06
parentfc502d2f0103d453242454e6097e9d7ca3103e45
2013-10-01  Richard Biener  <rguenther@suse.de>

PR tree-optimization/58553
* tree-loop-distribution.c (struct partition_s): Add niter member.
(classify_partition): Populate niter member for the partition
and properly identify whether the relevant store happens before
or after the loop exit.
(generate_memset_builtin): Use niter member from the partition.
(generate_memcpy_builtin): Likewise.

* gcc.dg/torture/pr58553.c: New testcase.

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