This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH] Retain TYPE_MODE more often for BIT_FIELD_REFs in get_inner_referece
- From: Eric Botcazou <ebotcazou at adacore dot com>
- To: Richard Biener <rguenther at suse dot de>
- Cc: gcc-patches at gcc dot gnu dot org
- Date: Wed, 25 Sep 2019 17:29:55 +0200
- Subject: Re: [PATCH] Retain TYPE_MODE more often for BIT_FIELD_REFs in get_inner_referece
- References: <nycvar.YFH.7.76.1909251546030.5566@zhemvz.fhfr.qr>
> The following patch relaxes the condition under which we force
> VOIDmode by making all non-integral types where the extraction
> size matches the type size (thus isn't "bitfieldish") use the
> mode of the extraction type.
Wouldn't TREE_CODE (TREE_TYPE (exp)) == VECTOR_TYPE be sufficient? At least
this would still be in keeping with the comment...
--
Eric Botcazou