OSDN Git Service

PR target/33474
authorrask <rask@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 18 Dec 2007 15:30:57 +0000 (15:30 +0000)
committerrask <rask@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 18 Dec 2007 15:30:57 +0000 (15:30 +0000)
* config/bfin/bfin.c (bfin_adjust_cost): Dig into PARALLELs to find
the SET.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@131037 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/ChangeLog
gcc/config/bfin/bfin.c

index ee3304e..56d1305 100644 (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
index e5f867b..ce67301 100644 (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))