tree-if-conv.c (tree-ssa-loop.h): Include header file.
authorBin Cheng <bin.cheng@arm.com>
Mon, 9 May 2016 11:44:03 +0000 (11:44 +0000)
committerBin Cheng <amker@gcc.gnu.org>
Mon, 9 May 2016 11:44:03 +0000 (11:44 +0000)
commit18caa34eb299b8ea583088ce4bbf32cdc37676ff
tree0bc305c854d198927d3503e42a9cc89202fc8b3f
parentfb334765e2ab959fcf3630e3c4a31ba1cc01a0f2
tree-if-conv.c (tree-ssa-loop.h): Include header file.

* tree-if-conv.c (tree-ssa-loop.h): Include header file.
(tree-ssa-loop-niter.h): Ditto.
(idx_within_array_bound, ref_within_array_bound): New functions.
(ifcvt_memrefs_wont_trap): Check if array ref is within bound.
Factor out check on writable base object to ...
(base_object_writable): ... here.

gcc/testsuite/
* gcc.dg/tree-ssa/ifc-9.c: New test.
* gcc.dg/tree-ssa/ifc-10.c: New test.
* gcc.dg/tree-ssa/ifc-11.c: New test.
* gcc.dg/tree-ssa/ifc-12.c: New test.
* gcc.dg/vect/pr61194.c: Remove XFAIL.
* gcc.dg/vect/vect-23.c: Remove XFAIL.
* gcc.dg/vect/vect-mask-store-move-1.c: Revise test check.

From-SVN: r236026
gcc/ChangeLog
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/tree-ssa/ifc-10.c [new file with mode: 0644]
gcc/testsuite/gcc.dg/tree-ssa/ifc-11.c [new file with mode: 0644]
gcc/testsuite/gcc.dg/tree-ssa/ifc-12.c [new file with mode: 0644]
gcc/testsuite/gcc.dg/tree-ssa/ifc-9.c [new file with mode: 0644]
gcc/testsuite/gcc.dg/vect/pr61194.c
gcc/testsuite/gcc.dg/vect/vect-23.c
gcc/testsuite/gcc.dg/vect/vect-mask-store-move-1.c
gcc/tree-if-conv.c