-
Type:
Enhancement
-
Resolution: Fixed
-
Priority:
P4
-
Affects Version/s: 17, 18
-
Component/s: hotspot
In current SLP, the vectorization of Math.abs() with char type is intentionally disabled after JDK-8261022 because it generates incorrect result before.
But in Java semantics, as the char type is always non-negative, we could actually translate Math.abs(char) to a no-op by adding a no-op IR and matching rules somehow.
We can consider re-enable Math.abs() vectorization with char type.
But in Java semantics, as the char type is always non-negative, we could actually translate Math.abs(char) to a no-op by adding a no-op IR and matching rules somehow.
We can consider re-enable Math.abs() vectorization with char type.
- causes
-
JDK-8371558 C2: Missing optimization opportunity in AbsNode::Ideal
-
- Resolved
-
- relates to
-
JDK-8280089 compiler/c2/irTests/TestIRAbs.java fails on some arches
-
- Resolved
-
-
JDK-8261022 Fix incorrect result of Math.abs() with char type
-
- Closed
-