From: Rask Ingemann Lambertsen Date: Tue, 18 Dec 2007 15:30:57 +0000 (+0100) Subject: re PR target/33474 (bfin: ICE: RTL check: expected code 'set' or 'clobber', have... X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=86636093d479670acc5c5758eea3ff3b534ca541;p=gcc.git re PR target/33474 (bfin: ICE: RTL check: expected code 'set' or 'clobber', have 'parallel' in bfin_adjust_cost, at config/bfin/bfin.c:3120) PR target/33474 * config/bfin/bfin.c (bfin_adjust_cost): Dig into PARALLELs to find the SET. From-SVN: r131037 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index ee3304e3023..56d1305c980 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,9 @@ +2007-12-18 Rask Ingemann Lambertsen + + PR target/33474 + * config/bfin/bfin.c (bfin_adjust_cost): Dig into PARALLELs to find + the SET. + 2007-12-18 Razya Ladelsky * tree-parloops.c (reduiction_info): Change documentation of diff --git a/gcc/config/bfin/bfin.c b/gcc/config/bfin/bfin.c index e5f867ba7aa..ce6730131d6 100644 --- a/gcc/config/bfin/bfin.c +++ b/gcc/config/bfin/bfin.c @@ -3376,6 +3376,8 @@ bfin_adjust_cost (rtx insn, rtx link, rtx dep_insn, int cost) if (dep_insn_type == TYPE_MOVE || dep_insn_type == TYPE_MCLD) { rtx pat = PATTERN (dep_insn); + if (GET_CODE (pat) == PARALLEL) + pat = XVECEXP (pat, 0, 0); rtx dest = SET_DEST (pat); rtx src = SET_SRC (pat); if (! ADDRESS_REGNO_P (REGNO (dest))