r251233 - in /trunk/gcc: ChangeLog function.c
rsandifo@gcc.gnu.org
rsandifo@gcc.gnu.org
Mon Aug 21 14:52:00 GMT 2017
Author: rsandifo
Date: Mon Aug 21 14:52:43 2017
New Revision: 251233
URL: https://gcc.gnu.org/viewcvs?rev=251233&root=gcc&view=rev
Log:
Simplify pad_below implementation
This patch simplifies the alignment calculations in pad_below.
The first arm of the "if" was:
- taking GET_MODE_BITSIZE (always equal to GET_MODE_SIZE * BITS_PER_UNIT),
- rounding up to the next multiple of PARM_BOUNDARY
- converting bits to bytes and
- subtracting the GET_MODE_SIZE
so was in effect calculating the number of bytes needed to round
GET_MODE_SIZE up to (PARM_BOUNDARY / BITS_PER_UNIT). That can be
done more directly as -size & (align - 1), which is easier to
convert to variable-sized modes.
2017-08-21 Richard Sandiford <richard.sandiford@linaro.org>
Alan Hayward <alan.hayward@arm.com>
David Sherwood <david.sherwood@arm.com>
gcc/
* function.c (pad_below): Simplify padding calculation.
Modified:
trunk/gcc/ChangeLog
trunk/gcc/function.c
More information about the Gcc-cvs
mailing list