I for one would love nothing more than to hear why we have yet to see vector primitives in Java.
One blink, and a muffled cough.
Auto-vectorization is being worked on. It’s applied to loops whose
array references have had their range checks successfully eliminated.
Most of the data types and operations that make sense for a platform will
eventually be supported. For operations that don’t have a direct Java
equivalent such as saturating adds, an idiom pattern match will be attempted.
Some other operations maybe to difficult for this method, requiring new
scalar intrinsic to be defined. The scalar intrinsic would then
be vectorized.
Auto-vectorization certainly has it’s limits. The hope is that it will
succeed on enough interesting cases to be a benefit.
Is autovectorization going to be available to the client compiler or is it server only? I can’t wait to see how it well it works or doesn’t work!
java7 is hopefuly going to have teired compilation (already has?), so a client/server VM thing is no more…
Neat stuff. I’m a little confused what you mean by this last part. By “instrinsic”, do you mean a new VM instruction?
I filed a RFE to enable us to use SIMD within the VM - which got accepted by Sun.
You’re more than welcome to add comments and suggestions!
Voting would be appreciated to bump its priority a bit.
[b]Please vote here:
RFE: 6526380 Add API to access SIMD instructions [/b]
Thanks!