RFR: 8360192: C2: Make the type of count leading/trailing zero nodes more precise [v3]

Qizheng Xing qxing at openjdk.org
Tue Jun 24 09:54:32 UTC 2025


On Mon, 23 Jun 2025 23:10:58 GMT, Chen Liang <liach at openjdk.org> wrote:

>> Qizheng Xing has updated the pull request incrementally with one additional commit since the last revision:
>> 
>>   Narrow type bound
>
> src/hotspot/share/opto/countbitsnode.cpp line 61:
> 
>> 59:                          ti->_widen);
>> 60:   }
>> 61:   return TypeInt::INT;
> 
> Just curious, when would this fallback path be used?

When someone passes a non-integer to `CountLeadingZerosINode`, I think.

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

PR Review Comment: https://git.openjdk.org/jdk/pull/25928#discussion_r2163491482


More information about the hotspot-compiler-dev mailing list