[tree-ssa] Make tsi insert iterators handle chains of COMPOUND_EXPRs
Richard Henderson
rth@redhat.com
Thu Aug 28 22:20:00 GMT 2003
On Thu, Aug 28, 2003 at 11:59:13PM +0200, Zdenek Dvorak wrote:
> this would be fine with me; what gets wrong is that
> tsi_link_after (tsi, a, TSI_NEW_STMT);
> tsi_link_before (tsi, b, TSI_NEW_STMT);
>
> will put b in the middle of a; which is inconsistend with the fact that
> tsi_link_before would not.
If it did, that would be a bug in the implementation of
tsi_link_before. The chain should have be:
start, tsi_stmt(tsi) == x
(ce <- ip
x
y)
tsi_link_after (tsi, a, TSI_NEW_STMT);
(ce
x
(ce <- ip
a1
(ce
a2
y)))
tsi_link_before (tsi, b, TSI_NEW_STMT);
(ce
x
(ce <- ip
b1
(ce
b2
(ce
a1
(ce
a2
y)))))
r~
More information about the Gcc-patches
mailing list