aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRask Ingemann Lambertsen <rask@sygehus.dk>2007-06-19 18:30:03 +0200
committerRask Ingemann Lambertsen <rask@gcc.gnu.org>2007-06-19 16:30:03 +0000
commiteedd7243586d83ac84307a0c460600bca8317e56 (patch)
tree4528381e5ac9044ba8adf0b0dc471f18e1715f4c
parentcdbbee7a4321fba5fe8371fd4d3c338850a7bbdb (diff)
downloadgcc-eedd7243586d83ac84307a0c460600bca8317e56.zip
gcc-eedd7243586d83ac84307a0c460600bca8317e56.tar.gz
gcc-eedd7243586d83ac84307a0c460600bca8317e56.tar.bz2
re PR target/32369 ([frv] macro "DF_LIVE_IN" passed 2 arguments, but takes just 1)
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
-rw-r--r--gcc/ChangeLog6
-rw-r--r--gcc/config/frv/frv.c20
2 files changed, 15 insertions, 11 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 409885a..3f990bd 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -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
diff --git a/gcc/config/frv/frv.c b/gcc/config/frv/frv.c
index 4b3e53e..f9e6026 100644
--- a/gcc/config/frv/frv.c
+++ b/gcc/config/frv/frv.c
@@ -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