RFR: 8283667: [vectorapi] Vectorization for masked load with IOOBE with predicate feature [v2]

Xiaohong Gong xgong at openjdk.java.net
Thu May 5 01:46:19 UTC 2022


On Thu, 5 May 2022 01:21:40 GMT, Paul Sandoz <psandoz at openjdk.org> wrote:

> > Yeah, I agree that it's not good by adding a branch checking for `offsetInRange`. But actually I met the constant issue that passing the values all the way cannot guarantee the argument a constant in compiler at the compile time. Do you have any better idea to fixing this?
> 
> That's odd, `boolean` constants are passed that are then converted to `int` constants. Did you try passing integer constants all the way through?

I will try again. I remember the main cause is the calling of `fromArray0` from `fromArray`, it is not annotated with `ForceInline`. The arguments might not be compiled to a constant for cases that the offset is not in the array range like tail loop.

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

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


More information about the hotspot-compiler-dev mailing list