This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Gimplification and simplification
- From: Diego Novillo <dnovillo at redhat dot com>
- To: Jan Hubicka <jh at suse dot cz>
- Cc: "gcc at gcc dot gnu dot org" <gcc at gcc dot gnu dot org>, Jeff Law <law at redhat dot com>
- Date: Wed, 05 Nov 2003 10:26:37 -0500
- Subject: Re: Gimplification and simplification
- Organization: Red Hat Canada
- References: <20031105151845.GU13705@kam.mff.cuni.cz>
On Wed, 2003-11-05 at 10:18, Jan Hubicka wrote:
> Hi,
> My RTL expansion code requires conditional jumps to be expanded to
> conditional jumps. Unforutnately we seem to be maintaining some of
> obviously unconditional jumps, like if (0==0).
>
> These may get constructed at gimplfication time via simplfying builtins.
> Like if (strlen("")). We end up not folding this to constant at all.
>
This is not produced by CCP or DOM? The call to fold_stmt() typically
takes care of these cases. I had started adding hooks into CCP to deal
with some builtins. That may be a good place to start looking.
Or is this coming directly from the gimplifier?
Diego.