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
This commit is contained in:
Rask Ingemann Lambertsen 2007-12-18 16:30:57 +01:00 committed by Rask Ingemann Lambertsen
parent 0741e2aff1
commit 86636093d4
2 changed files with 8 additions and 0 deletions

View File

@ -1,3 +1,9 @@
2007-12-18 Rask Ingemann Lambertsen <rask@sygehus.dk>
PR target/33474
* config/bfin/bfin.c (bfin_adjust_cost): Dig into PARALLELs to find
the SET.
2007-12-18 Razya Ladelsky <razya@il.ibm.com>
* tree-parloops.c (reduiction_info): Change documentation of

View File

@ -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))