Walter Bright:

and I have trouble thinking of any significant improvements to code gen that could be made with runtime data.

I've seen that the JavaHotSpot is able to unroll loops with a length known only at run-time. It unrolls them only when the run-time statistics say it's advantageous.

(In theory the same is possible with profile-driven optimization).

Bye,
bearophile

Reply via email to