This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: DCE eliminating valid statement for ACATS c34007p
- From: kenner at vlsi1 dot ultra dot nyu dot edu (Richard Kenner)
- To: richard dot guenther at gmail dot com
- Cc: gcc at gcc dot gnu dot org
- Date: Tue, 6 Sep 05 08:08:56 EDT
- Subject: Re: DCE eliminating valid statement for ACATS c34007p
> # VUSE <D.861_10>;
> VIEW_CONVERT_EXPR<struct c34007p__T7b>(*D.861).b = 1;
Why are we using a VIEW_CONVERT_EXPR here btw? I'd say
D.862 = (struct c34007p__T7b *) D.860;
D.862->b = 1;
would be a lot more middle-end friendly and maybe not exposing the
problem you are seeing? Of course the gimplifier could do this
transformation.
This falls out of general-purpose code in the front-end and I think you're
right that the gimplifier could (and should) do this transformation.