[vectorIntrinsics+mask] RFR: 8269343: Masked vector arithmetic intrinsics failed to be inlined randomly
Xiaohong Gong
xgong at openjdk.java.net
Fri Jun 25 09:36:47 UTC 2021
The masked `"lanewise/reduceLanes"` failed to be intrinsified randomly. The main reason is the hotspot c2 compiler cannot
unbox the mask value due to the expected vector box type being mismatched with the class of the mask value. The vector box type is the` "mask class"` which is specified in Java level and saved in the intrinsic argument list. It is the class of the instance
of the vector mask (i.e. `"IntMaxMask.class"`), while the type of mask value is the super class (i.e. `"jdk.incubator.vector.VectorMask<Integer>"`).
Casting the mask value to the same subclass before calling the intrinsics can solve this issue.
-------------
Commit messages:
- 8269343: Masked vector arithmetic intrinsics failed to be inlined randomly
Changes: https://git.openjdk.java.net/panama-vector/pull/96/files
Webrev: https://webrevs.openjdk.java.net/?repo=panama-vector&pr=96&range=00
Issue: https://bugs.openjdk.java.net/browse/JDK-8269343
Stats: 155 lines in 31 files changed: 0 ins; 0 del; 155 mod
Patch: https://git.openjdk.java.net/panama-vector/pull/96.diff
Fetch: git fetch https://git.openjdk.java.net/panama-vector pull/96/head:pull/96
PR: https://git.openjdk.java.net/panama-vector/pull/96
More information about the panama-dev
mailing list