From: Thomas Schwinge Date: Tue, 18 Oct 2016 19:36:45 +0000 (+0200) Subject: Use FOR_ALL_BB_FN in a few more places X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=2300c332eb046581a8135dabf66b9e85afec65b7;p=gcc.git Use FOR_ALL_BB_FN in a few more places gcc/ * cfg.c (clear_bb_flags): Use FOR_ALL_BB_FN. * config/nvptx/nvptx.c (nvptx_find_sese): Likewise. From-SVN: r241315 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 4922809f54a..6002ddee5bf 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2016-10-18 Thomas Schwinge + + * cfg.c (clear_bb_flags): Use FOR_ALL_BB_FN. + * config/nvptx/nvptx.c (nvptx_find_sese): Likewise. + 2016-10-18 Kelvin Nilsen * config/rs6000/altivec.h (vec_xl_len): New macro. diff --git a/gcc/cfg.c b/gcc/cfg.c index ee2e42c1f80..6604b02192c 100644 --- a/gcc/cfg.c +++ b/gcc/cfg.c @@ -386,7 +386,7 @@ clear_bb_flags (void) { basic_block bb; - FOR_BB_BETWEEN (bb, ENTRY_BLOCK_PTR_FOR_FN (cfun), NULL, next_bb) + FOR_ALL_BB_FN (bb, cfun) bb->flags &= BB_FLAGS_TO_PRESERVE; } diff --git a/gcc/config/nvptx/nvptx.c b/gcc/config/nvptx/nvptx.c index 6ec8eb41eaa..80fa9ae2f1b 100644 --- a/gcc/config/nvptx/nvptx.c +++ b/gcc/config/nvptx/nvptx.c @@ -3091,17 +3091,11 @@ nvptx_find_sese (auto_vec &blocks, bb_pair_vec_t ®ions) int ix; /* First clear each BB of the whole function. */ - FOR_EACH_BB_FN (block, cfun) + FOR_ALL_BB_FN (block, cfun) { block->flags &= ~BB_VISITED; BB_SET_SESE (block, 0); } - block = EXIT_BLOCK_PTR_FOR_FN (cfun); - block->flags &= ~BB_VISITED; - BB_SET_SESE (block, 0); - block = ENTRY_BLOCK_PTR_FOR_FN (cfun); - block->flags &= ~BB_VISITED; - BB_SET_SESE (block, 0); /* Mark blocks in the function that are in this graph. */ for (ix = 0; blocks.iterate (ix, &block); ix++)