On 03/15/2013 09:17 AM, Andreas Gal wrote: > We did some research work on this for JIT compilers way back at UCI as part > of my thesis. This was 5 years ago and the architecture world was different, > and this was focused on x86, but the rough result was that on x86 all that > matters is scheduling division and memory access. The rest was irrelevant. > The hardware can see much further ahead in the dynamic instruction stream > than you can easily do in software, especially when compiling under time > pressure (its a JIT!).
This basically matches my knowledge from a compiler class I took around the same time. Someone took the test programs we were to compile and did a ton of hand-scheduling of things (to decide which optimizations we should implement in the limited time we had) and found it didn't make any difference at all to ultimate speed. I don't know anything about ARM capabilities now, but to the extent ARM chips aren't as smart, I'd want to know what the chances are that newer ARM chips will be smarter in this regard, before spending a lot of time on instruction scheduling. There seems to be a lot of other low-hanging fruit we should pick first, even if it were valuable on ARM. Jeff _______________________________________________ dev-tech-js-engine-internals mailing list [email protected] https://lists.mozilla.org/listinfo/dev-tech-js-engine-internals

