Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8352154

Folding optimizations for Float16

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Unresolved
    • Icon: P4 P4
    • tbd
    • 25
    • hotspot
    • generic
    • generic

      The new C2 compiler support for Float16, or HalfFloat in the Ideal Graph, is missing some easy optimizations.
       - Conversion folding: sequences of ConvertHF2F and ConvertF2HF are not eliminated.
       - Float16 constants created with the idiom `Float16.valueOf(3.14f)` end up as a ConF in the ideal graph, preventing 16-bit subtraction in the case of `1 - (2 - f)` (see attached graph).

            Unassigned Unassigned
            mhassig Manuel Hassig
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: