+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'
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,