RFR: 8342103: C2 compiler support for Float16 type and associated scalar operations [v11]
Hamlin Li
mli at openjdk.org
Thu Jan 23 10:57:49 UTC 2025
On Thu, 23 Jan 2025 08:32:47 GMT, Jatin Bhateja <jbhateja at openjdk.org> wrote:
>> src/hotspot/share/opto/library_call.cpp line 8670:
>>
>>> 8668:
>>> 8669: const TypeInstPtr* box_type = _gvn.type(argument(0))->isa_instptr();
>>> 8670: if (box_type == nullptr || box_type->const_oop() == nullptr) {
>>
>> Hi, this is not a review comment.
>> Just curious, to continue the following code path why does `box_type` must have a valid `const_oop`?
>
> @Hamlin-Li , Class types are passed as constant oop, this check is added for argument validation.
Thanks!
Seems it could be an assert instead? Or maybe I could have misunderstood your above explanation.
-------------
PR Review Comment: https://git.openjdk.org/jdk/pull/22754#discussion_r1926780216
More information about the hotspot-compiler-dev
mailing list