On Mon, 2004-08-30 at 13:27, Zdenek Dvorak wrote:
Hello,
this patch implements the function that enables to obtain an
iterator
for the statement in constant time. This functionality seems to be
needed in several new patches (ivopts, Andrew Pinski's loops to
memset
optimization pass, Dale Johannesen's implemenation of value
profiling
on tree level).
Could you provide some examples? In principle, I don't see why an
object should know about its container. When I've needed to
manipulate
statements, I just pass around SIs.
You'd need the bsi if you were going to remove the original statement
and replace it with a new one, or if you were going to move the
original statement from one location to a new location, or if you
were going to insert a new statement somewhere.