]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
re PR target/32369 ([frv] macro "DF_LIVE_IN" passed 2 arguments, but takes just 1)
authorRask Ingemann Lambertsen <rask@sygehus.dk>
Tue, 19 Jun 2007 16:30:03 +0000 (18:30 +0200)
committerRask Ingemann Lambertsen <rask@gcc.gnu.org>
Tue, 19 Jun 2007 16:30:03 +0000 (16:30 +0000)
2007-06-19  Rask Ingemann Lambertsen  <rask@sygehus.dk>

PR target/32369
* config/frv/frv.c (frv_ifcvt_modify_tests): Dataflow merge fix.
(frv_ifcvt_modify_insn): Likewise.

From-SVN: r125851

gcc/ChangeLog
gcc/config/frv/frv.c

index 409885a20153b62381c15bd0456969fb740d4fc4..3f990bd313b5b62d86f93675e2dc51a342e28010 100644 (file)
@@ -1,3 +1,9 @@
+2007-06-19  Rask Ingemann Lambertsen  <rask@sygehus.dk>
+
+       PR target/32369
+       * config/frv/frv.c (frv_ifcvt_modify_tests): Dataflow merge fix.
+       (frv_ifcvt_modify_insn): Likewise.
+
 2007-06-19  Richard Guenther  <rguenther@suse.de>
 
        * tree-ssa-structalias.c (handle_ptr_arith): Make sure to
index 4b3e53e990890fd2c9250c38b6e21365c4231824..f9e60263ac6acac2f649bf3c5765800a3d50fcf8 100644 (file)
@@ -5295,15 +5295,15 @@ frv_ifcvt_modify_tests (ce_if_block_t *ce_info, rtx *p_true, rtx *p_false)
       for (j = CC_FIRST; j <= CC_LAST; j++)
        if (TEST_HARD_REG_BIT (tmp_reg->regs, j))
          {
-           if (REGNO_REG_SET_P (DF_LIVE_IN (rtl_df, then_bb), j))
+           if (REGNO_REG_SET_P (df_get_live_in (then_bb), j))
              continue;
 
            if (else_bb
-               && REGNO_REG_SET_P (DF_LIVE_IN (rtl_df, else_bb), j))
+               && REGNO_REG_SET_P (df_get_live_in (else_bb), j))
              continue;
 
            if (join_bb
-               && REGNO_REG_SET_P (DF_LIVE_IN (rtl_df, join_bb), j))
+               && REGNO_REG_SET_P (df_get_live_in (join_bb), j))
              continue;
 
            SET_HARD_REG_BIT (frv_ifcvt.nested_cc_ok_rewrite, j);
@@ -5325,7 +5325,7 @@ frv_ifcvt_modify_tests (ce_if_block_t *ce_info, rtx *p_true, rtx *p_false)
 
       /* Remove anything live at the beginning of the join block from being
          available for allocation.  */
-      EXECUTE_IF_SET_IN_REG_SET (DF_LIVE_IN (rtl_df, join_bb), 0, regno, rsi)
+      EXECUTE_IF_SET_IN_REG_SET (df_get_live_in (join_bb), 0, regno, rsi)
        {
          if (regno < FIRST_PSEUDO_REGISTER)
            CLEAR_HARD_REG_BIT (tmp_reg->regs, regno);
@@ -5369,7 +5369,7 @@ frv_ifcvt_modify_tests (ce_if_block_t *ce_info, rtx *p_true, rtx *p_false)
 
       /* Anything live at the beginning of the block is obviously unavailable
          for allocation.  */
-      EXECUTE_IF_SET_IN_REG_SET (DF_LIVE_IN (rtl_df, bb[j]), 0, regno, rsi)
+      EXECUTE_IF_SET_IN_REG_SET (df_get_live_in (bb[j]), 0, regno, rsi)
        {
          if (regno < FIRST_PSEUDO_REGISTER)
            CLEAR_HARD_REG_BIT (tmp_reg->regs, regno);
@@ -6022,17 +6022,15 @@ frv_ifcvt_modify_insn (ce_if_block_t *ce_info,
                  limit scheduling of the combined block quite
                  severely.  */
               && ce_info->join_bb
-              && ! (REGNO_REG_SET_P
-                    (DF_LIVE_IN (rtl_df, ce_info->join_bb),
-                     REGNO (SET_DEST (set))))
+              && ! (REGNO_REG_SET_P (df_get_live_in (ce_info->join_bb),
+                                     REGNO (SET_DEST (set))))
               /* Similarly, we must not unconditionally set a reg
                  used as scratch in the THEN branch if the same reg
                  is live in the ELSE branch.  */
               && (! ce_info->else_bb
                   || BLOCK_FOR_INSN (insn) == ce_info->else_bb
-                  || ! (REGNO_REG_SET_P
-                        (DF_LIVE_IN (rtl_df, ce_info->else_bb),
-                         REGNO (SET_DEST (set))))))
+                  || ! (REGNO_REG_SET_P (df_get_live_in (ce_info->else_bb),
+                                         REGNO (SET_DEST (set))))))
        pattern = set;
 
       else if (mode == QImode || mode == HImode || mode == SImode