[lto] PATCH: fill in code to merge declarations
Mark Mitchell
mark@codesourcery.com
Wed Sep 20 21:46:00 GMT 2006
Kenneth Zadeck wrote:
> Mark was just trying make something work in the short term.
Yes, exactly; I thought that, in the short term, you might want to just
reconstitute the entire body of the function as TREE (ignoring the CFG,
etc.) and then pass it back through the entire compilation stack. Since
I expected re-gimplification to be harmless (as Diego confirms), you'd
then be able to round-trip code through the LTO front end.
I'd expect you to get the same generated code that way that you would by
reconstituting the CFG and basic-block information, and then proceeding
from there; the "only" difference would be efficiency, since if you
re-gimplify and re-build the CFG you presumably get to the same state.
I'm not at all discounting the efficiency issue (hence the quotes around
only above), so it makes sense to me to wire up a way to skip these
early parts of the middle end. But, that may require some work.
--
Mark Mitchell
CodeSourcery
mark@codesourcery.com
(650) 331-3385 x713
More information about the Gcc-patches
mailing list