re PR tree-optimization/52171 (memcmp/strcmp/strncmp can be optimized when the result...
authorOleg Endo <olegendo@gcc.gnu.org>
Sat, 4 Jun 2016 11:00:58 +0000 (11:00 +0000)
committerOleg Endo <olegendo@gcc.gnu.org>
Sat, 4 Jun 2016 11:00:58 +0000 (11:00 +0000)
gcc/ChangeLog
PR tree-optimization/52171
* config/sh/sh.c (sh_use_by_pieces_infrastructure_p): Use
by_pieces_ninsns instead of move_by_pieces_ninsns.

From-SVN: r237090

gcc/ChangeLog
gcc/config/sh/sh.c

index bce140bef53a65fe0967da256c105ddcca845d8f..3e11cb9e06c349798f45dedfe27a5f14be67091d 100644 (file)
@@ -1,3 +1,9 @@
+2016-06-04  Oleg Endo  <olegendo@gcc.gnu.org>
+
+       PR tree-optimization/52171
+       * config/sh/sh.c (sh_use_by_pieces_infrastructure_p): Use
+       by_pieces_ninsns instead of move_by_pieces_ninsns.
+
 2016-06-04  Oleg Endo  <olegendo@gcc.gnu.org>
 
        * config/sh/sh.c (sh_print_operand_address): Don't use hardcoded 'r0'
index 74327aa7c7ec868d1f7b690abd1744cd6e528195..0960a99fd2ce8a2d34aa8a276b55c4bd67e2c085 100644 (file)
@@ -12506,11 +12506,11 @@ sh_use_by_pieces_infrastructure_p (unsigned HOST_WIDE_INT size,
   switch (op)
     {
       case MOVE_BY_PIECES:
-       return move_by_pieces_ninsns (size, align, MOVE_MAX_PIECES + 1)
+       return by_pieces_ninsns (size, align, MOVE_MAX_PIECES + 1, op)
          < (!speed_p ? 2 : (align >= 32) ? 16 : 2);
       case STORE_BY_PIECES:
       case SET_BY_PIECES:
-       return move_by_pieces_ninsns (size, align, STORE_MAX_PIECES + 1)
+       return by_pieces_ninsns (size, align, STORE_MAX_PIECES + 1, op)
          < (!speed_p ? 2 : (align >= 32) ? 16 : 2);
       default:
        return default_use_by_pieces_infrastructure_p (size, align,