Re: Optimizing arithmetic operations on processors with AVX2 support

2011-12-08 Thread Vladimir Kozlov
bject: Re: Optimizing arithmetic operations on processors with AVX2 support Such an assumption (in-order execution of statements) would be invalid even with the current memory model. There's nothing to stop the compilers from re-ordering the adds and multiplies so that they fill each other&

Re: Optimizing arithmetic operations on processors with AVX2 support

2011-12-08 Thread Paul Hohensee
Java Memory Model. Date: Thu, 8 Dec 2011 10:08:12 -0800 From: shan...@vmware.com To: john_pla...@hotmail.com CC: jdk8-dev@openjdk.java.net Subject: Re: Optimizing arithmetic operations on processors with AVX2 support Such an assumption (in-order executi

Re: Optimizing arithmetic operations on processors with AVX2 support

2011-12-08 Thread Artem Ananiev
Shouldn't it be discussed on the hotspot-dev alias? Thanks, Artem On 12/8/2011 9:25 PM, John Platts wrote: Here is an example of a class with an operation that can be optimized on a processor with AVX2 support:class ExampleClass {public void ExampleOperation(ExampleClass y) {a

RE: Optimizing arithmetic operations on processors with AVX2 support

2011-12-08 Thread John Platts
, 8 Dec 2011 10:08:12 -0800 > From: shan...@vmware.com > To: john_pla...@hotmail.com > CC: jdk8-dev@openjdk.java.net > Subject: Re: Optimizing arithmetic operations on processors with AVX2 support > > Such an assumption (in-order execution of statements) would be invalid even >

Re: Optimizing arithmetic operations on processors with AVX2 support

2011-12-08 Thread Shankar Unni
Such an assumption (in-order execution of statements) would be invalid even with the current memory model. There's nothing to stop the compilers from re-ordering the adds and multiplies so that they fill each other's pipeline delays. So I don't think AVX2 brings anything new to the table in ter