RFR: 8283694: Improve bit manipulation and boolean to integer conversion operations on x86_64 [v7]

Dean Long dlong at openjdk.java.net
Fri Jun 3 15:52:36 UTC 2022


On Fri, 3 Jun 2022 15:41:50 GMT, Quan Anh Mai <duke at openjdk.java.net> wrote:

>> Does this pattern give any improvement?
>> 
>> testl $src, $src
>> movl $dst, 0
>> setnz $dst
>
> `movl r, 0` is not a zero idiom, so a partial register write later of `setcc` would lead to register stall when the value is read.

OK, thanks.

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

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


More information about the hotspot-compiler-dev mailing list