RFR: 8335392: C2 MergeStores: enhanced pointer parsing [v11]

Emanuel Peter epeter at openjdk.org
Fri Nov 1 10:29:10 UTC 2024


On Fri, 1 Nov 2024 08:00:06 GMT, Christian Hagedorn <chagedorn at openjdk.org> wrote:

>> src/hotspot/share/opto/mempointer.cpp line 52:
>> 
>>> 50: 
>>> 51:   // Sort summands by variable->_idx
>>> 52:   _summands.sort(MemPointerSummand::cmp_for_sort);
>> 
>> When you name the method something like `cmp_by_variable_idx`, then you could remove the comment.
>
> Can you also add a comment that sorting it like that enables walking over the summands and combining the scales for the same nodes below?

good idea!

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

PR Review Comment: https://git.openjdk.org/jdk/pull/19970#discussion_r1825674083


More information about the hotspot-compiler-dev mailing list