On Wed, May 04, 2011 at 08:30:40AM -0400, Richard Kenner wrote:
> > There are pros and cons about early optimization, actually.
> > Generating extremely optimized IL very early can actually tie up
> > subsequent passes.  For instance, loop unrolling and vectorization.
> > There are others in the literature.
> 
> Sure, in the sorts of examples you mention where there's a level of
> "globality" to it.  But I don't see it in the types of things that
> fold does.  How could it ever be better to leave "a - a" in the tree
> instead of "0"?

If you ever want to do things beside compile the code--automated
refactoring, renaming, pretty-printing, etc.--fidelity to the source is
preferred.

-Nathan

Reply via email to