Skip to content

Commit 2984a3f

Browse files
Alpha: Adjust MEM alignment for block clear [PR115459]
By inference it appears to me that the same fix for PR target/115459 needs to be applied to the block clear operation that has been done for block move, as implemented by commit ccfe715 ("[alpha] adjust MEM alignment for block move [PR115459]"). gcc/ PR target/115459 * config/alpha/alpha.cc (alpha_expand_block_clear): Adjust MEM to match inferred alignment.
1 parent 6036a1a commit 2984a3f

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

gcc/config/alpha/alpha.cc

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4076,6 +4076,12 @@ alpha_expand_block_clear (rtx operands[])
40764076
else if (a >= 16)
40774077
align = a, alignofs = 2 - c % 2;
40784078
}
4079+
4080+
if (MEM_P (orig_dst) && MEM_ALIGN (orig_dst) < align)
4081+
{
4082+
orig_dst = shallow_copy_rtx (orig_dst);
4083+
set_mem_align (orig_dst, align);
4084+
}
40794085
}
40804086

40814087
/* Handle an unaligned prefix first. */

0 commit comments

Comments
 (0)