RFR: 8286279: [vectorapi] Only check index of masked lanes if offset is out of array boundary for masked store

Xiaohong Gong xgong at openjdk.java.net
Fri May 13 01:30:56 UTC 2022


On Thu, 12 May 2022 09:49:17 GMT, Quan Anh Mai <duke at openjdk.java.net> wrote:

> Maybe we could use `a.length - vsp.length() > 0 && offset u< a.length - vsp.length()` which would hoist the first check outside of the loop. Thanks.

Thanks for the review @merykitty ! We need the check `offset >= 0` which I think is different from `a.length - vsp.length()`.

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

PR: https://git.openjdk.java.net/jdk/pull/8620


More information about the core-libs-dev mailing list