diff options
author | Richard Sandiford <richard.sandiford@linaro.org> | 2017-10-13 09:41:39 +0000 |
---|---|---|
committer | Richard Sandiford <rsandifo@gcc.gnu.org> | 2017-10-13 09:41:39 +0000 |
commit | fb98441af9c84caef6a0e3210ace4b8ffc7e3840 (patch) | |
tree | 34cd9d3afa018eb2d3ab1f7ee4b142e66c6cda7f /gcc/cse.c | |
parent | 90f2b7e220df8ce298b2cd8f853a02aaecdbff0b (diff) | |
download | gcc-fb98441af9c84caef6a0e3210ace4b8ffc7e3840.zip gcc-fb98441af9c84caef6a0e3210ace4b8ffc7e3840.tar.gz gcc-fb98441af9c84caef6a0e3210ace4b8ffc7e3840.tar.bz2 |
Make more use of GET_MODE_UNIT_SIZE
This patch uses GET_MODE_UNIT_SIZE instead of GET_MODE_SIZE in
cases where, for compound modes, the mode of the scalar elements
is what matters. E.g. the choice between truncation and extension
is really based on the modes of the consistuent scalars rather
than the mode as a whole.
None of the existing code was wrong. The patch simply makes
things easier when converting to variable-sized modes.
2017-10-13 Richard Sandiford <richard.sandiford@linaro.org>
Alan Hayward <alan.hayward@arm.com>
David Sherwood <david.sherwood@arm.com>
gcc/
* optabs.c (add_equal_note): Use GET_MODE_UNIT_SIZE.
(widened_mode): Likewise.
(expand_unop): Likewise.
* ree.c (transform_ifelse): Likewise.
(merge_def_and_ext): Likewise.
(combine_reaching_defs): Likewise.
* simplify-rtx.c (simplify_unary_operation_1): Likewise.
Co-Authored-By: Alan Hayward <alan.hayward@arm.com>
Co-Authored-By: David Sherwood <david.sherwood@arm.com>
From-SVN: r253715
Diffstat (limited to 'gcc/cse.c')
0 files changed, 0 insertions, 0 deletions