Intrinsics for Math.min and max

Andrew Haley aph at redhat.com
Tue Apr 1 08:42:50 UTC 2014


On 04/01/2014 07:02 AM, Martin Grajcar wrote:
> I wonder if these intrinsics still make sense when the compiler can
> generate movcc itself. According to this SO question
> http://stackoverflow.com/questions/22752198/java-math-min-max-performance
> it can lead to a factor two slowdown (I guess a JMH benchmark would confirm
> this).

Exactly.  Will you do it?

Andrew.




More information about the hotspot-compiler-dev mailing list