avoid generation of empty guards in trivial cases
authorAditya Kumar <aditya.k7@samsung.com>
Wed, 21 Oct 2015 18:53:35 +0000 (18:53 +0000)
committerSebastian Pop <spop@gcc.gnu.org>
Wed, 21 Oct 2015 18:53:35 +0000 (18:53 +0000)
commit77ec8b8c0f75a5f0b953e5dd6696e6b07253f21b
treee9fe19bfcb75c2f7c755a5ac577e0861c0c15e1c
parentcaf5b4dfca050e8e93b1ee15705ab9c759854f40
avoid generation of empty guards in trivial cases

We used to insert a trivial integer_onep condition around loops we know have
more than an iteration.  This patch avoids generating those conditions.

* graphite-isl-ast-to-gimple.c (graphite_create_new_loop_guard): Do not call
create_empty_if_region_on_edge when cond_expr is true.
(translate_isl_ast_node_for): Check whether a guard has been generated.

Co-Authored-By: Sebastian Pop <s.pop@samsung.com>
From-SVN: r229137
gcc/ChangeLog
gcc/graphite-isl-ast-to-gimple.c