[lworld+fp16] RFR: 8341414: Add support for FP16 conversion routines [v3]

Jatin Bhateja jbhateja at openjdk.org
Tue Nov 26 15:43:28 UTC 2024


On Tue, 26 Nov 2024 11:17:28 GMT, Bhavana Kilambi <bkilambi at openjdk.org> wrote:

> Yes :) I just wanted to make sure you are ok with the changes before I integrate.
> 
> So for constant folding we would do something like - convert half float value to float and then to integral/double right? But that would mean extra instructions in the backend when we have direct instructions to cast from half float to integral/double?

Since constants are folded at compile time, adding runtime helpers just for constant folding looks like an overkill. Post folding compile will directly operate over constant IR.

Best Regards,
Jatin

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

PR Comment: https://git.openjdk.org/valhalla/pull/1283#issuecomment-2501195393


More information about the valhalla-dev mailing list