diff options
author | Aaron Sawdey <acsawdey@linux.ibm.com> | 2019-10-03 22:19:14 +0000 |
---|---|---|
committer | Aaron Sawdey <acsawdey@gcc.gnu.org> | 2019-10-03 17:19:14 -0500 |
commit | 5d8bb3897ef3fba6b4ac677e64188b1da86eda39 (patch) | |
tree | ea87672a061ac30a2c681e1b2f85bd376eae93e3 /gcc/expr.c | |
parent | e1cb00db670e4eb277f8315ecc1da65a5477298d (diff) | |
download | gcc-5d8bb3897ef3fba6b4ac677e64188b1da86eda39.zip gcc-5d8bb3897ef3fba6b4ac677e64188b1da86eda39.tar.gz gcc-5d8bb3897ef3fba6b4ac677e64188b1da86eda39.tar.bz2 |
expr.c (emit_block_move_hints): Slightly cleaner fix to can_move_by_pieces issue.
2019-10-03 Aaron Sawdey <acsawdey@linux.ibm.com>
* expr.c (emit_block_move_hints): Slightly cleaner fix to
can_move_by_pieces issue.
From-SVN: r276542
Diffstat (limited to 'gcc/expr.c')
-rw-r--r-- | gcc/expr.c | 5 |
1 files changed, 2 insertions, 3 deletions
@@ -1624,9 +1624,8 @@ emit_block_move_hints (rtx x, rtx y, rtx size, enum block_op_methods method, set_mem_size (y, const_size); } - bool pieces_ok = false; - if (CONST_INT_P (size)) - pieces_ok = can_move_by_pieces (INTVAL (size), align); + bool pieces_ok = CONST_INT_P (size) + && can_move_by_pieces (INTVAL (size), align); bool pattern_ok = false; if (!pieces_ok || might_overlap) |