RFR: 8282204: Use lea instructions for arithmetic operations on x86_64 [v5]
Sandhya Viswanathan
sviswanathan at openjdk.java.net
Sat Mar 12 01:06:48 UTC 2022
On Mon, 28 Feb 2022 15:01:06 GMT, Jie Fu <jiefu at openjdk.org> wrote:
>> Icelakes introduce `clwb` instruction so I use that to filter Intel cpus.
>
>> Icelakes introduce `clwb` instruction so I use that to filter Intel cpus.
>
> I'm not sure if we can find a better way (e.g., cpuid) to filter Intel CPUs.
> However, this seems fine since gcc and llvm will generate `lea` even without `clwb`.
supports_clwb() is true on the previous Cascade Lake architecture as well so it will be good to pick some other new Icelake feature to differentiate.
-------------
PR: https://git.openjdk.java.net/jdk/pull/7560
More information about the hotspot-compiler-dev
mailing list