Thanks for the explanation! Sounds like that those dynamic techniques (out of 
order execution, register renaming, etc.) dominated the static scheduler in 
compiler, especially on beasts like x86.

AFAIK, ARM introduced ooo and register renaming to cortex-a9, but I've no idea 
how effective it is. I can do some experiments on various ARM CPUs if needed.

BTW, could you please suggest some low-hanging fruit? :-) Before this thread I 
used to think of an instruction scheduler a big fruit.

----- Original Message -----
From: "Jeff Walden" <[email protected]>
To: [email protected]
Sent: Monday, March 18, 2013 7:55:08 AM
Subject: Re: [JS-internals] Instruction scheduling and selection in IonMonkey

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
_______________________________________________
dev-tech-js-engine-internals mailing list
[email protected]
https://lists.mozilla.org/listinfo/dev-tech-js-engine-internals

Reply via email to