[lworld+fp16] RFR: 8341414: Add support for FP16 conversion routines
Jatin Bhateja
jbhateja at openjdk.org
Mon Oct 28 12:30:25 UTC 2024
On Mon, 28 Oct 2024 12:25:56 GMT, Jatin Bhateja <jbhateja at openjdk.org> wrote:
>> src/java.base/share/classes/java/lang/Float16.java line 643:
>>
>>> 641: @IntrinsicCandidate
>>> 642: public int intValue() {
>>> 643: return (int)floatValue();
>>
>> Should it be handled trough Idealization xform ?
>>
>> ConvHF2F + ConvF2I => ConvHF2I
>
> Matcher pattern may also suffice, but the problem will if ConvHF2F has multiple users.
If you check JDK mainline Float16 C2 compiler support PR, John has suggested us to go with pattern matching, I have added more details to that draft PR.
-------------
PR Review Comment: https://git.openjdk.org/valhalla/pull/1283#discussion_r1818972524
More information about the valhalla-dev
mailing list