Fix computation of single entry/exit of a region.
authorAditya Kumar <aditya.k7@samsung.com>
Thu, 24 Dec 2015 16:41:46 +0000 (16:41 +0000)
committerSebastian Pop <spop@gcc.gnu.org>
Thu, 24 Dec 2015 16:41:46 +0000 (16:41 +0000)
commit402cab17fd7775cf392b1464df86ca3cc445accf
tree267857aa43b4a7480117ed14a553bd45a0ec7f12
parent8e64f018315bbde89779f6c87ec9142ddee7d4a3
Fix computation of single entry/exit of a region.

For basic block with two preds, allow (as single entry) only when the other
edge is a backedge. Similarly for basic block with two succs,
allow (as single exit) only when the other edge is a back edge.

2015-12-21  Aditya Kumar  <hiraditya@msn.com>

        * graphite-scop-detection.c (scop_detection::get_nearest_dom_with_single_entry): Check l == l2.
        (scop_detection::get_nearest_pdom_with_single_exit): Same.
        (scop_detection::merge_sese): Whitespace.
        (scop_detection::add_scop): Comment.
        (build_scops): Whitespace.

From-SVN: r231946
gcc/ChangeLog
gcc/graphite-scop-detection.c