* tree-loop-distribution.c (INCLUDE_ALGORITHM): New header file.
commit05ebeee62f3677a964a62f2cca0c54a208a10d9d
authoramker <amker@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 18 Oct 2017 16:04:16 +0000 (18 16:04 +0000)
committeramker <amker@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 18 Oct 2017 16:04:16 +0000 (18 16:04 +0000)
tree131565bc95410d1201c4c1be486f24340fcb7924
parentb363c31bef5ce011fc9438b59e817c3263bf0736
* 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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@253859 138bc75d-0d04-0410-961f-82ee72b054a4
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