[tree-ssa] Removing redundant loads

Jason Merrill jason@redhat.com
Sat May 31 12:43:00 GMT 2003


On Fri, 30 May 2003 18:34:45 -0600, law@redhat.com wrote:

> In message <wvln0h40yjy.fsf@prospero.boston.redhat.com>, Jason Merrill writes:
>  >> For example, if you pass it this tree for both operands, you'll get a
>  >> false back from operand_b because this expression has tree_side_effects
>  >> set.
>  >
>  >Why does that expression have TREE_SIDE_EFFECTS set?

> Because we unconditionally set TREE_SIDE_EFFECTS on STMT_EXPRs.  That
> gets propagated up to the COMPONENT_REFs.

The gimplifier should have cleared that flag while processing the
COMPONENT_REF.  I'll check it out.

Jason



More information about the Gcc-patches mailing list