[PATCH] Fix RTL fwprop compile-time for PR56113
Tue Jan 29 23:01:00 GMT 2013
This brings down compile time for fwprop by avoiding CFG changes in
loop_optimizer_init(). The CFG changes it could make would invalidate
the fast dominance queries, so that walk_dominator_tree had to work
with the slow queries -- rather painful on a CFG with an almost flat
With the n=10000 test case, we go from unpatched:
forward prop : 39.13 (13%) usr
forward prop : 13.60 ( 5%) usr
That's still not a reasonable amount of time for such a simple pass,
but it's better than before...
To prevent that mistake in the future, I've add an assert in dominance.c.
OK for trunk?
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 1608 bytes
Desc: not available
More information about the Gcc-patches