RFR: 8282432: Optimize masked "test" Vector API with predicate feature [v2]

Xiaohong Gong xgong at openjdk.java.net
Mon Mar 7 01:31:04 UTC 2022


On Thu, 3 Mar 2022 17:40:13 GMT, Paul Sandoz <psandoz at openjdk.org> wrote:

> I guess the following: `mask.cast(IntVector.species(shape())` is more efficient than: `m.cast(vspecies().asIntegral()))` ?

Yeah, that's one point. Another main reason is `m.cast(vspecies().asIntegral()))`  cannot be handled well in the superclass due to the java generic issues.

Thanks for the reiview @PaulSandoz !

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

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


More information about the hotspot-compiler-dev mailing list