From f7569f3a0f8f97141b08bb5c8ac58fcbc7eeccf2 Mon Sep 17 00:00:00 2001 From: Nathan Sidwell Date: Tue, 2 Nov 2004 20:30:50 +0000 Subject: [PATCH] flow.c (init_propagate_block_info): Use bitmap_empty_p on result of bitmap_xor. * flow.c (init_propagate_block_info): Use bitmap_empty_p on result of bitmap_xor. From-SVN: r89998 --- gcc/ChangeLog | 5 +++++ gcc/flow.c | 8 +++++--- 2 files changed, 10 insertions(+), 3 deletions(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 7f09ec2..0bb7e28 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2004-11-02 Nathan Sidwell + + * flow.c (init_propagate_block_info): Use bitmap_empty_p on result + of bitmap_xor. + 2004-11-02 Ziemowit Laski * c-lang.c (LANG_HOOKS_TYPES_COMPATIBLE_P): Remove. diff --git a/gcc/flow.c b/gcc/flow.c index 163e5c9..7c81d69 100644 --- a/gcc/flow.c +++ b/gcc/flow.c @@ -1848,9 +1848,11 @@ init_propagate_block_info (basic_block bb, regset live, regset local_set, } /* Compute which register lead different lives in the successors. */ - if (bitmap_xor (diff, bb_true->global_live_at_start, - bb_false->global_live_at_start)) - { + bitmap_xor (diff, bb_true->global_live_at_start, + bb_false->global_live_at_start); + + if (!bitmap_empty_p (diff)) + { /* Extract the condition from the branch. */ rtx set_src = SET_SRC (pc_set (BB_END (bb))); rtx cond_true = XEXP (set_src, 0); -- 2.7.4