RFR: 8369258: C2: enable ReassociateInvariants for all loop types [v2]

Roland Westrelin roland at openjdk.org
Mon Oct 13 14:48:40 UTC 2025


> 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.

Roland Westrelin has updated the pull request with a new target base due to a merge or a rebase. The incremental webrev excludes the unrelated changes brought in by the merge/rebase. The pull request contains four additional commits since the last revision:

 - review
 - Merge branch 'master' into JDK-8369258
 - test fixes
 - test and fix

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

Changes:
  - all: https://git.openjdk.org/jdk/pull/27666/files
  - new: https://git.openjdk.org/jdk/pull/27666/files/d63f11d2..87d69288

Webrevs:
 - full: https://webrevs.openjdk.org/?repo=jdk&pr=27666&range=01
 - incr: https://webrevs.openjdk.org/?repo=jdk&pr=27666&range=00-01

  Stats: 13293 lines in 277 files changed: 10607 ins; 1599 del; 1087 mod
  Patch: https://git.openjdk.org/jdk/pull/27666.diff
  Fetch: git fetch https://git.openjdk.org/jdk.git pull/27666/head:pull/27666

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


More information about the hotspot-compiler-dev mailing list