RFR: 8328528: C2 should optimize long-typed parallel iv in an int counted loop

Kangcheng Xu kxu at openjdk.org
Wed Mar 27 00:33:33 UTC 2024


Currently, parallel iv optimization only happens in an int counted loop with int-typed parallel iv's. This PR adds support for long-typed iv to be optimized. 

Additionally, this ticket contributes to the resolution of [JDK-8275913](https://bugs.openjdk.org/browse/JDK-8275913). Meanwhile, I'm working on adding support for parallel IV replacement for long counted loops which will depend on this PR.

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

Commit messages:
 - remove WIP support for long counted loops
 - Merge branch 'master' into long-typed-parallel-iv
 - update tests
 - update tests
 - update tests
 - clean up code for pr
 - clean up code for pr
 - add tests for int counted loops with long iv
 - use jlong (long long) for ILP32
 - Revert "refactor (x & m) u<= m transformation and add test"
 - ... and 8 more: https://git.openjdk.org/jdk/compare/907e30ff...2230c7a6

Changes: https://git.openjdk.org/jdk/pull/18489/files
  Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=18489&range=00
  Issue: https://bugs.openjdk.org/browse/JDK-8328528
  Stats: 161 lines in 2 files changed: 149 ins; 0 del; 12 mod
  Patch: https://git.openjdk.org/jdk/pull/18489.diff
  Fetch: git fetch https://git.openjdk.org/jdk.git pull/18489/head:pull/18489

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


More information about the hotspot-compiler-dev mailing list