diff options
Diffstat (limited to 'gcc/basic-block.h')
-rw-r--r-- | gcc/basic-block.h | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/gcc/basic-block.h b/gcc/basic-block.h index e2cd90211f1..eb719ca26e0 100644 --- a/gcc/basic-block.h +++ b/gcc/basic-block.h @@ -1135,6 +1135,21 @@ bb_has_eh_pred (basic_block bb) return false; } +/* Return true when one of the predecessor edges of BB is marked with EDGE_ABNORMAL. */ +static inline bool +bb_has_abnormal_pred (basic_block bb) +{ + edge e; + edge_iterator ei; + + FOR_EACH_EDGE (e, ei, bb->preds) + { + if (e->flags & EDGE_ABNORMAL) + return true; + } + return false; +} + /* In cfgloopmanip.c. */ extern edge mfb_kj_edge; bool mfb_keep_just (edge); |