tree-loop-distribution.c (INCLUDE_ALGORITHM): New header file.
authorBin Cheng <bin.cheng@arm.com>
Wed, 18 Oct 2017 16:04:16 +0000 (16:04 +0000)
committerBin Cheng <amker@gcc.gnu.org>
Wed, 18 Oct 2017 16:04:16 +0000 (16:04 +0000)
commit957f0d8faf41d64fa4ba548411e6d4dd95a083bf
tree131565bc95410d1201c4c1be486f24340fcb7924
parent85aa9ed64bf871b2e620211609855804e1775864
tree-loop-distribution.c (INCLUDE_ALGORITHM): New header file.

* tree-loop-distribution.c (INCLUDE_ALGORITHM): New header file.
(tree-ssa-loop-ivopts.h): New header file.
(struct builtin_info): New fields.
(classify_builtin_1): Compute and record base and offset parts for
memset builtin partition by calling strip_offset.
(offset_cmp, fuse_memset_builtins): New functions.
(finalize_partitions): Fuse adjacent memset partitions by calling
above function.
* tree-ssa-loop-ivopts.c (strip_offset): Delete static declaration.
Expose the interface.
* tree-ssa-loop-ivopts.h (strip_offset): New declaration.

* gcc.dg/tree-ssa/ldist-17.c: Adjust test string.
* gcc.dg/tree-ssa/ldist-32.c: New test.
* gcc.dg/tree-ssa/ldist-35.c: New test.
* gcc.dg/tree-ssa/ldist-36.c: New test.

From-SVN: r253859
gcc/ChangeLog
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/tree-ssa/ldist-17.c
gcc/testsuite/gcc.dg/tree-ssa/ldist-32.c [new file with mode: 0644]
gcc/testsuite/gcc.dg/tree-ssa/ldist-35.c [new file with mode: 0644]
gcc/testsuite/gcc.dg/tree-ssa/ldist-36.c [new file with mode: 0644]
gcc/tree-loop-distribution.c
gcc/tree-ssa-loop-ivopts.c
gcc/tree-ssa-loop-ivopts.h