CSE, loops, and array accesses
Andrew Haley
aph at redhat.com
Thu Oct 1 13:19:55 UTC 2015
On 10/01/2015 02:00 PM, Edward Nevill wrote:
> Try the following patch, it should generate the code you want.
OK, so perhaps the question is how to fix this in the form of a patch
which can go into JDK9.
But there is a deeper question: why is ((A+B)+con) so tightly bound
that the constant add can never be CSE'd? I guess there is some
special-case code somewhere which detects address this case.
Speculating, perhaps the real reason for this is loops with
safepoints.
Andrew.
More information about the hotspot-compiler-dev
mailing list