[tree-ssa] Lazy updating of stmt operands
law@redhat.com
law@redhat.com
Wed Dec 17 04:56:00 GMT 2003
In message <20031215214727.GA31524@atrey.karlin.mff.cuni.cz>, Zdenek Dvorak wri
tes:
>Hello,
>
>> > > something like
>> > > bool immediate_uses_avail_p (tree ssa_name)
>> > > or
>> > > bool immediate_uses_avail_p (tree stmt)
>> > >
>> > > Presumably the latter, but both are easy to provide.
>> >
>> > ??? I don't really quite get you. Either the information should be
>> > available for every statement or not at all. Having something in the
>> > middle is just confusing.
>> >
>>
>> I dont see why. If you want to track just a few variables, why should
>> you pay for tracking 45,000?
>
>because you generally don't know which variables you are interested in.
But sometimes you do (for example CCP) and not computing it for all those
variables you don't care about is a significant win.
>Also chosing the different ones in the different passes requieres
>recomputing the information, and it is not at all obvious to me whether
>this would not make this actually more expensive.
True. There's now way to know for sure until you actually try it.
However, our experience so far has been that "pruning" the set of things
we're computing (whether they're immediate uses, variables which might
need PHIs, etc) has been very advantageous from both a compile time
standpoint and a runtime standpoint.
Jeff
More information about the Gcc
mailing list