RFR: 8320649: C2: Optimize scoped values [v4]
Emanuel Peter
epeter at openjdk.org
Tue Feb 6 17:23:59 UTC 2024
On Thu, 25 Jan 2024 16:43:30 GMT, Roland Westrelin <roland at openjdk.org> wrote:
>>> > In its simplest form, a ScopedValue get will have a test (to check it's indeed in the cache) and a load so I don't think vectorization is possible.
>>>
>>> So you think this could not be predicated and hoisted out of the loop? That would also be a sad limitation 😞
>>
>> Even if that was possible, ScopedValue get loads are from the cache indexed by a hash stored as a field in the ScopedValue object. I'm not sure how you would be able to tell which of the loads from several get() calls are contiguous in memory.
>
>> Nice work @rwestrel I'm sending out a first batch or comments, more coming later.
>
> Thanks for the careful review.
@rwestrel Should I look at this again, or are you still working on some parts?
-------------
PR Comment: https://git.openjdk.org/jdk/pull/16966#issuecomment-1930411298
More information about the hotspot-compiler-dev
mailing list