RFR: 8347555: [REDO] C2: implement optimization for series of Add of unique value [v7]

Kangcheng Xu kxu at openjdk.org
Tue Mar 25 16:21:24 UTC 2025


On Thu, 13 Mar 2025 08:14:04 GMT, Emanuel Peter <epeter at openjdk.org> wrote:

>> Kangcheng Xu has updated the pull request incrementally with one additional commit since the last revision:
>> 
>>   add micro benchmark
>
> This looks really interesting!
> 
> I see that you are doing some special pattern matching. I wonder if it might be worth generalizing the algorithm, to search through an arbitrary "tree" of additions, collect all "leaves" of (`variable * multiplier`), sort by `variable`, and compute new additions for each `variable`. What do you think?

@eme64 Could you please take a look at this if you have some time? Thanks!

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

PR Comment: https://git.openjdk.org/jdk/pull/23506#issuecomment-2751814976


More information about the hotspot-compiler-dev mailing list