RFR: 8277793: Support vector F2I and D2L cast operations for X86 [v2]

Jatin Bhateja jbhateja at openjdk.java.net
Wed Dec 1 11:39:30 UTC 2021


On Wed, 1 Dec 2021 11:31:57 GMT, Jatin Bhateja <jbhateja at openjdk.org> wrote:

>> src/hotspot/cpu/x86/c2_MacroAssembler_x86.cpp line 4112:
>> 
>>> 4110: 
>>> 4111:   vpcmpeqd(xtmp4, xtmp4, xtmp4, vec_enc);
>>> 4112:   vpxor(xtmp1, xtmp1, xtmp4, vec_enc);
>> 
>> vpcmpeqd is a high latency instruction. This constant (0x7FFF...) can be formed earlier immediately after 4099, when xtmp1 becomes available.
>
> This is on a slow path which handles special values, moving it prior to 4099 will penalize fast path.

Moving flipping pattern after fast path.

-------------

PR: https://git.openjdk.java.net/jdk/pull/6544


More information about the hotspot-compiler-dev mailing list