Integrated: 8369258: C2: enable ReassociateInvariants for all loop types

Roland Westrelin roland at openjdk.org
Thu Oct 16 07:38:35 UTC 2025


On Tue, 7 Oct 2025 07:36:41 GMT, Roland Westrelin <roland at openjdk.org> wrote:

> Currently ReassociateInvariants is only enabled for int counted
> loops. I noticed, enabling it for long counted loops helps RCE. It
> also seems like something that would help any loop. I propose enabling
> it for all inner loops.

This pull request has now been integrated.

Changeset: ff6a0170
Author:    Roland Westrelin <roland at openjdk.org>
URL:       https://git.openjdk.org/jdk/commit/ff6a0170f0ab5cfb4af6d6a4a779451823c486d6
Stats:     463 lines in 6 files changed: 267 ins; 190 del; 6 mod

8369258: C2: enable ReassociateInvariants for all loop types

Reviewed-by: epeter, qamai

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

PR: https://git.openjdk.org/jdk/pull/27666


More information about the hotspot-compiler-dev mailing list