mirror of
https://gcc.gnu.org/git/gcc.git
synced 2024-11-30 23:35:00 +08:00
explow: Avoid unnecessary alignment operations
align_dynamic_address would output alignment operations even for a required alignment of 1 byte. gcc/ * explow.cc (align_dynamic_address): Do nothing if the required alignment is a byte.
This commit is contained in:
parent
a7a45364dd
commit
89abbaa5fb
@ -1201,6 +1201,9 @@ record_new_stack_level (void)
|
||||
rtx
|
||||
align_dynamic_address (rtx target, unsigned required_align)
|
||||
{
|
||||
if (required_align == BITS_PER_UNIT)
|
||||
return target;
|
||||
|
||||
/* CEIL_DIV_EXPR needs to worry about the addition overflowing,
|
||||
but we know it can't. So add ourselves and then do
|
||||
TRUNC_DIV_EXPR. */
|
||||
|
Loading…
Reference in New Issue
Block a user