-
Enhancement
-
Resolution: Unresolved
-
P4
-
25
-
generic
Currently, we do not infer Float16-specific IR for the following source pattern.
SRC = Float16.valueOf(src[i]);
RES = Float16.max(SRC, Float16.NaN)
The reason is that the current scheme to detect Float16 operations for some of the operations is based on generic pattern matching. In the above case, the second argument gets constant folded to a Float constant, thus bypassing the existing pattern, which expects the inputs to be ConvHF2F.
SRC = Float16.valueOf(src[i]);
RES = Float16.max(SRC, Float16.NaN)
The reason is that the current scheme to detect Float16 operations for some of the operations is based on generic pattern matching. In the above case, the second argument gets constant folded to a Float constant, thus bypassing the existing pattern, which expects the inputs to be ConvHF2F.
- relates to
-
JDK-8342103 C2 compiler support for Float16 type and associated scalar operations
-
- Resolved
-