What is the purpose of loop predication lower bounds check

Vladimir Kozlov vladimir.kozlov at oracle.com
Thu Feb 1 19:52:35 UTC 2024


Also array's access may have offset arr[CON + i]

On 2/1/24 11:44 AM, Vladimir Kozlov wrote:
> Initial index value is variable.
> 
> Reverse (negative stride) processing of array?
> 
> On 2/1/24 11:31 AM, Cao, Joshua wrote:
>> Can I get some help with https://bugs.openjdk.org/browse/JDK-8325146? 
>> What is
>> the purpose of the lower bounds check for loop predication? It seems 
>> like an
>> unnecessary if-check for any example I can come up with.
>>
>> Whatever the reason might be, I think there are cases in which we can 
>> ellide
>> the lower bounds check, like in the example in the JBS issue.
>>
>>


More information about the hotspot-compiler-dev mailing list