redirect_edge_and_branch questions
Zdenek Dvorak
rakdver@atrey.karlin.mff.cuni.cz
Mon Oct 4 23:53:00 GMT 2004
Hello,
> NOw this is all so I can do something that i could work around here.. I
> can stash away all the stmts ahead of time and then not have top worry
> about it. Im suprised other non-ssa tree CFG manipulations havent
> tripped over it. Maybe Im just doing something weird.
simply noone tried to insert statements on edges and simultaneously use
edge redirection or make_forwarder_block. The former is not really that
surprising, since trying it is a clear way to hell. The later is due to
the fact that make_forwarder_block is so far used only in loop optimizer
on places where statement insertion is not to be expected (preheader
creation etc.) Also the tree loop optimizer prefers
bsi_insert_on_edge_immediate over leaving statements pending on edges
(which might be other way how to solve your problem, depending on
how much your optimization would be complicated by newly created basic
blocks and inserted statements).
Zdenek
More information about the Gcc
mailing list