[lworld] RFR: 8370195: [lworld] Constant-fold _layout_kind loads from constant FlatArrayKlass [v2]

Tobias Hartmann thartmann at openjdk.org
Mon Oct 20 09:09:40 UTC 2025


On Mon, 20 Oct 2025 09:05:11 GMT, Quan Anh Mai <qamai at openjdk.org> wrote:

>> Hi,
>> 
>> The load to FlatArrayKlass::_layout_kind can be constant-folded if the receiver is a constant. This eliminates all checks when the array type is known statically or speculated correctly.
>> 
>> Please leave your reviews, thanks a lot.
>
> Quan Anh Mai has updated the pull request incrementally with two additional commits since the last revision:
> 
>  - grammar
>  - add comments

Marked as reviewed by thartmann (Committer).

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

PR Review: https://git.openjdk.org/valhalla/pull/1687#pullrequestreview-3355603625


More information about the valhalla-dev mailing list