This is the mail archive of the
gcc-cvs@gcc.gnu.org
mailing list for the GCC project.
r242179 - in /branches/ARM/sve-branch/gcc: expm...
- From: rsandifo at gcc dot gnu dot org
- To: gcc-cvs at gcc dot gnu dot org
- Date: Fri, 11 Nov 2016 17:13:47 -0000
- Subject: r242179 - in /branches/ARM/sve-branch/gcc: expm...
Author: rsandifo
Date: Fri Nov 11 17:13:47 2016
New Revision: 242179
URL: https://gcc.gnu.org/viewcvs?rev=242179&root=gcc&view=rev
Log:
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.
Modified:
branches/ARM/sve-branch/gcc/expmed.c
branches/ARM/sve-branch/gcc/optabs.c
branches/ARM/sve-branch/gcc/ree.c
branches/ARM/sve-branch/gcc/simplify-rtx.c