This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Handling large vector modes in store_bit_field


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~


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]