RFR (S) 8150102: C1 should fold arraylength for constant/trusted arrays
aleksey.shipilev at oracle.com
Thu Feb 18 08:16:41 UTC 2016
On 02/18/2016 11:08 AM, Vladimir Ivanov wrote:
> Looks good.
> On 2/18/16 2:05 AM, Aleksey Shipilev wrote:
>> Please review a small tuneup in C1 arraylength folding:
>> After this patch, C1 successfully folds the general arraylength
>> accesses. In the end, this lets to fold String.length() for constant
>> I am actually wondering if as_LoadField path is ever hit in
>> applications, because the targeted microbenchmark for static final array
>> had improved with new as_Constant path.
> I don't think it happens. GraphBuilder::access_field already folds loads
> into constants.
So, would you like me to strip away as_LoadField path, and place a debug
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 819 bytes
Desc: OpenPGP digital signature
More information about the hotspot-compiler-dev