This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: Handling large vector modes in store_bit_field
- From: Richard Henderson <rth at redhat dot com>
- To: Richard Sandiford <rsandifo at redhat dot com>
- Cc: gcc-patches at gcc dot gnu dot org
- Date: Thu, 25 Sep 2003 17:34:57 -0700
- Subject: Re: Handling large vector modes in store_bit_field
- References: <wvnhe32dj9p.fsf@talisman.cambridge.redhat.com>
On Wed, Sep 24, 2003 at 09:27:30PM +0100, Richard Sandiford wrote:
> + if (GET_MODE (value) == VOIDmode)
> + fieldmode = smallest_mode_for_size (nwords * BITS_PER_WORD, MODE_INT);
Seems like it would be better to do
fieldmode = GET_MODE (value);
if (fieldmode == VOIDmode)
fieldmode = smallest_mode_for_size (...)
and then remove the conditional from its use in the loop.
Ok with that change.
r~