]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
flow.c (init_propagate_block_info): Use bitmap_empty_p on result of bitmap_xor.
authorNathan Sidwell <nathan@codesourcery.com>
Tue, 2 Nov 2004 20:30:50 +0000 (20:30 +0000)
committerRichard Henderson <rth@gcc.gnu.org>
Tue, 2 Nov 2004 20:30:50 +0000 (12:30 -0800)
        * flow.c (init_propagate_block_info): Use bitmap_empty_p on result
        of bitmap_xor.

From-SVN: r89998

gcc/ChangeLog
gcc/flow.c

index 7f09ec28e7548290b65a1ac5004f862a07d87c05..0bb7e282f9797bba6eb9f0e0b33477ffb525f50f 100644 (file)
@@ -1,3 +1,8 @@
+2004-11-02  Nathan Sidwell  <nathan@codesourcery.com>
+
+       * flow.c (init_propagate_block_info): Use bitmap_empty_p on result
+       of bitmap_xor.
+
 2004-11-02  Ziemowit Laski  <zlaski@apple.com>
 
        * c-lang.c (LANG_HOOKS_TYPES_COMPATIBLE_P): Remove.
index 163e5c9a4804beff1de7530065f1b968ab7ac53f..7c81d6928db249526922d5826917c98c2f6c5cb7 100644 (file)
@@ -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);