i386.c (ix86_loop_unroll_adjust): Use PATTERN (insn) when looking for memory references.
authorUros Bizjak <uros@gcc.gnu.org>
Mon, 11 May 2015 16:35:02 +0000 (18:35 +0200)
committerUros Bizjak <uros@gcc.gnu.org>
Mon, 11 May 2015 16:35:02 +0000 (18:35 +0200)
* config/i386/i386.c (ix86_loop_unroll_adjust): Use PATTERN (insn)
when looking for memory references.

From-SVN: r223008

gcc/ChangeLog
gcc/config/i386/i386.c

index 7640c5b50aa042537f2c990796019021ee297bc9..77aa930136dc836551a607e7c0e9b37a3c910560 100644 (file)
@@ -1,3 +1,8 @@
+2015-05-11  Uros Bizjak  <ubizjak@gmail.com>
+
+       * config/i386/i386.c (ix86_loop_unroll_adjust): Use PATTERN (insn)
+       when looking for memory references.
+
 2015-05-11  Alexander Monakov  <amonakov@ispras.ru>
 
        PR target/65753
@@ -13,7 +18,7 @@
        ([-fno-plt]): Document.
 
 2015-05-11  Markus Trippelsdorf  <markus@trippelsdorf.de>
-       
+
        PR bootstrap/66105
        * config/rs6000/option-defaults.h: Add space between string literal
        and macro name.
 2015-05-05  Matthew Wahab  <matthew.wahab@arm.com>
 
        * gcc/config/aarch64-protos.h (struct cpu_branch_cost): New.
-        (tune_params): Add field branch_costs.
+       (tune_params): Add field branch_costs.
        (aarch64_branch_cost): Declare.
        * gcc/config/aarch64.c (generic_branch_cost): New.
        (generic_tunings): Set field cpu_branch_cost to generic_branch_cost.
 
 2015-04-30  Caroline Tice  <cmtice@google.com>
 
-        PR 65929
+       PR gcov-profile/65929
        * config/elfos.h (ASM_DECLARE_COLD_FUNCTION_NAME): New macro definition.
        (ASM_DECLARE_COLD_FUNCTION_SIZE): New macro definition.
        * doc/tm.texi.in (ASM_DECLARE_COLD_FUNCTION_NAME): Document new macro.
index fb7977f4d65bf76d6b8d02b2de0aed57754e7038..277ecbcb9c9d6e911d51e8b49d05818cdb31784d 100644 (file)
@@ -51446,7 +51446,7 @@ ix86_loop_unroll_adjust (unsigned nunroll, struct loop *loop)
   for (i = 0; i < loop->num_nodes; i++)
     FOR_BB_INSNS (bbs[i], insn)
       if (NONDEBUG_INSN_P (insn))
-       FOR_EACH_SUBRTX (iter, array, insn, NONCONST)
+       FOR_EACH_SUBRTX (iter, array, PATTERN (insn), NONCONST)
          if (const_rtx x = *iter)
            if (MEM_P (x))
              {