aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/graphite-scop-detection.c
diff options
context:
space:
mode:
Diffstat (limited to 'gcc-4.9/gcc/graphite-scop-detection.c')
-rw-r--r--gcc-4.9/gcc/graphite-scop-detection.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/gcc-4.9/gcc/graphite-scop-detection.c b/gcc-4.9/gcc/graphite-scop-detection.c
index 821f0846e..635e21a85 100644
--- a/gcc-4.9/gcc/graphite-scop-detection.c
+++ b/gcc-4.9/gcc/graphite-scop-detection.c
@@ -474,8 +474,10 @@ scopdet_basic_block_info (basic_block bb, loop_p outermost_loop,
result.exits = false;
/* Mark bbs terminating a SESE region difficult, if they start
- a condition. */
- if (!single_succ_p (bb))
+ a condition or if the block it exits to cannot be split
+ with make_forwarder_block. */
+ if (!single_succ_p (bb)
+ || bb_has_abnormal_pred (single_succ (bb)))
result.difficult = true;
else
result.exit = single_succ (bb);