This is the mail archive of the
mailing list for the GCC project.
Re: [tree-ssa] dead const/pure/alloca call removal
On Sat, 8 Nov 2003 21:41:32 -0800, Richard Henderson <email@example.com> wrote:
> On Sat, Nov 08, 2003 at 09:51:08PM +0100, Jan Hubicka wrote:
>> This has a problem. We first gimplify functions, then analyze them and
>> mark as CONST/PURE and then optimize. So we lose the information.
>> Wehre do you think this flag should be updated?
> I don't unserstand why we'd lose this during gimplification.
> Please explain. It definitely sounds like if we lose the bit
> then we've got a trivial bug somewhere.
I think Jan isn't talking about losing the bit, but rather that the called
functions don't have the const/pure bit set until after gimplification. No
idea why that would be, though.