tree-vect-data-refs.c (vect_no_alias_p): New function.
authorBin Cheng <bin.cheng@arm.com>
Wed, 13 Jul 2016 15:06:40 +0000 (15:06 +0000)
committerBin Cheng <amker@gcc.gnu.org>
Wed, 13 Jul 2016 15:06:40 +0000 (15:06 +0000)
commit6fa3d4b4a75e63276f5460a59395e1d3a634c477
treeda48e610f52224f60624eb2d668dad26e54d3861
parent65f18bc635b2d6e9db318d3430f618f4219d8c13
tree-vect-data-refs.c (vect_no_alias_p): New function.

* tree-vect-data-refs.c (vect_no_alias_p): New function.
(vect_prune_runtime_alias_test_list): Call vect_no_alias_p to
resolve alias checks which are known at compilation time.
Truncate vector LOOP_VINFO_MAY_ALIAS_DDRS(loop_vinfo) if all
alias checks are resolved.  Move dump info for too many runtime
alias checks to here...
* tree-vect-loop.c (vect_analyze_loop_2): ...From here.

gcc/testsuite
* gcc.dg/vect/vect-35-big-array.c: Refine comment and test.
* gcc.dg/vect/vect-35.c: Ditto.
* gcc.dg/vect/vect-alias-check-2.c: New test.

From-SVN: r238301
gcc/ChangeLog
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/vect/vect-35-big-array.c
gcc/testsuite/gcc.dg/vect/vect-35.c
gcc/testsuite/gcc.dg/vect/vect-alias-check-2.c [new file with mode: 0644]
gcc/tree-vect-data-refs.c
gcc/tree-vect-loop.c