[vectorIntrinsics+mask] Integrated: 8269343: Masked vector arithmetic intrinsics failed to be inlined randomly
Xiaohong Gong
xgong at openjdk.java.net
Wed Jun 30 00:52:25 UTC 2021
On Fri, 25 Jun 2021 09:29:58 GMT, Xiaohong Gong <xgong at openjdk.org> wrote:
> 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.
This pull request has now been integrated.
Changeset: 14075353
Author: Xiaohong Gong <xgong at openjdk.org>
URL: https://git.openjdk.java.net/panama-vector/commit/14075353a7ed48e9f2de2e0beb59d8731ddc1daf
Stats: 155 lines in 31 files changed: 0 ins; 0 del; 155 mod
8269343: Masked vector arithmetic intrinsics failed to be inlined randomly
Reviewed-by: psandoz
-------------
PR: https://git.openjdk.java.net/panama-vector/pull/96
More information about the panama-dev
mailing list