RFR: 8348411: C2: Remove the control input of LoadKlassNode and LoadNKlassNode [v4]
Vladimir Ivanov
vlivanov at openjdk.org
Thu Jan 30 18:26:52 UTC 2025
On Thu, 30 Jan 2025 17:11:08 GMT, Quan Anh Mai <qamai at openjdk.org> wrote:
>> Hi,
>>
>> This patch removes the control input of `LoadKlassNode` and `LoadNKlassNode`. They can only have a control input if created inside `Parse::array_store_check()`, the reason given is:
>>
>> // We are allowed to use the constant type only if cast succeeded
>>
>> But this seems incorrect, the load from the constant type can be done regardless, and it will be constant-folded. This patch only makes that more formal and cleanup `LoadKlassNode::can_remove_control`.
>>
>> Please take a look and leave your reviews, thanks a lot.
>
> Quan Anh Mai has updated the pull request incrementally with one additional commit since the last revision:
>
> format
Marked as reviewed by vlivanov (Reviewer).
-------------
PR Review: https://git.openjdk.org/jdk/pull/23274#pullrequestreview-2584713287
More information about the hotspot-compiler-dev
mailing list