[vectorIntrinsics+mask] RFR: 8267368: Add masking support for reduction vector intrinsics [v3]

Xiaohong Gong xgong at openjdk.java.net
Fri Jun 25 02:42:48 UTC 2021


On Fri, 25 Jun 2021 01:48:45 GMT, Xiaohong Gong <xgong at openjdk.org> wrote:

>> This patch adds the masking support for vector reduction operations, including the Vector API java implementation and hotspot intrinsics changes. It adds the mask information to the reduction intrinsic method. With it:
>>   - Both masked and non-masked reduction operations call the same hotspot intrinsics. The mask value and class are set to `"null"` for non-masked operations.
>>   - Reduction IR with mask as another input will be generated if the platform supports the predicate feature for the op. Otherwise, the vector blend pattern will be generated like before.
>> 
>> Note that this patch only contains the Vector API java implementation and the hotspot intrinsics changes. No compiler mid-end and backend implementations are included.
>
> Xiaohong Gong has updated the pull request with a new target base due to a merge or a rebase. The pull request now contains four commits:
> 
>  - Use "VecMaskUsePred" to check whether predicate is supported
>  - Merge panama-vector:vectorIntrinsics+mask into JDK-8267368
>  - Merge panama-vector:vectorIntrinsics+mask into JDK-8267368
>  - 8267368: Add masking support for reduction vector intrinsics

Hi @iwanowww , we'd like to integrate this PR first to promote the further masking feature development. Any comments and feedback are still welcome! And we can revisit them in future. Thanks so much!

Best Regards,
Xiaohong

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

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


More information about the panama-dev mailing list