[vectorIntrinsics+mask] RFR: 8269343: Masked vector arithmetic intrinsics failed to be inlined randomly

Xiaohong Gong xgong at openjdk.java.net
Mon Jun 28 01:57:38 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.

@PaulSandoz , could you please take a look at this PR? Thanks so much!

-------------

PR: https://git.openjdk.java.net/panama-vector/pull/96


More information about the panama-dev mailing list