aboutsummaryrefslogtreecommitdiff
path: root/gcc/tree-cfg.c
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/tree-cfg.c')
-rw-r--r--gcc/tree-cfg.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/gcc/tree-cfg.c b/gcc/tree-cfg.c
index a68c964..14c901d 100644
--- a/gcc/tree-cfg.c
+++ b/gcc/tree-cfg.c
@@ -1217,12 +1217,12 @@ tree_can_merge_blocks_p (basic_block a, basic_block b)
if (EDGE_SUCC (a, 0)->dest != b)
return false;
- if (b == EXIT_BLOCK_PTR)
- return false;
-
if (EDGE_COUNT (b->preds) > 1)
return false;
+ if (b == EXIT_BLOCK_PTR)
+ return false;
+
/* If A ends by a statement causing exceptions or something similar, we
cannot merge the blocks. */
stmt = last_stmt (a);