RFR: 8324630: C1: Canonicalizer::do_LookupSwitch doesn't break the loop when the successor is found [v3]

Denghui Dong ddong at openjdk.org
Fri Jan 26 22:47:47 UTC 2024


On Fri, 26 Jan 2024 20:16:42 GMT, Dean Long <dlong at openjdk.org> wrote:

>> Updated: break when `v < x->key_at(i)`
>> 
>>> Maybe we should consider binary search?
>> 
>> From the perspective of pursuing performance, binary search can be considered. If you agree, I can change to using binary search here.
>
> Yes, I'd like to see how it looks.

Updated.

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

PR Review Comment: https://git.openjdk.org/jdk/pull/17553#discussion_r1468214822


More information about the hotspot-compiler-dev mailing list