tree-vect-loop-manip.c (slpeel_add_loop_guard): New param and mark new edge's irreduc...
authorBin Cheng <amker@gcc.gnu.org>
Tue, 28 Mar 2017 15:32:29 +0000 (15:32 +0000)
committerBin Cheng <amker@gcc.gnu.org>
Tue, 28 Mar 2017 15:32:29 +0000 (15:32 +0000)
commit3e907b90563ad90752acf1b318bdac33d546c7f7
treea424b9312c1a72286158acb96bd9e6c459c09604
parent522818b971dbbb87e4bf875de17a67c813c54b47
tree-vect-loop-manip.c (slpeel_add_loop_guard): New param and mark new edge's irreducible flag accordign to it.

* tree-vect-loop-manip.c (slpeel_add_loop_guard): New param and
mark new edge's irreducible flag accordign to it.
(vect_do_peeling): Check loop preheader edge's irreducible flag
and pass it to function slpeel_add_loop_guard.
gcc/testsuite
* gcc.c-torture/compile/irreducible-loop.c: New.

From-SVN: r246540
gcc/ChangeLog
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.c-torture/compile/irreducible-loop.c [new file with mode: 0644]
gcc/tree-vect-loop-manip.c