RFR: 8349361: C2: RShiftL should support all applicable transformations that RShiftI does [v11]

Roland Westrelin roland at openjdk.org
Mon Mar 10 13:32:40 UTC 2025


> This change refactors `RShiftI`/`RshiftL` `Ideal`, `Identity` and
> `Value` because the `int` and `long` versions are very similar and so
> there's no logic duplication. In the process, support for some extra
> transformations is added to `RShiftL`. I also added some new test
> cases.

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 20 additional commits since the last revision:

 - review  + test fix
 - review
 - Merge branch 'master' into JDK-8349361
 - review
 - Merge branch 'master' into JDK-8349361
 - review
 - review
 - review
 - Merge branch 'master' into JDK-8349361
 - Update src/hotspot/share/opto/mulnode.cpp
   
   Co-authored-by: Emanuel Peter <emanuel.peter at oracle.com>
 - ... and 10 more: https://git.openjdk.org/jdk/compare/1f934b14...34e925b3

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

Changes:
  - all: https://git.openjdk.org/jdk/pull/23438/files
  - new: https://git.openjdk.org/jdk/pull/23438/files/d3b1cf08..34e925b3

Webrevs:
 - full: https://webrevs.openjdk.org/?repo=jdk&pr=23438&range=10
 - incr: https://webrevs.openjdk.org/?repo=jdk&pr=23438&range=09-10

  Stats: 43133 lines in 1281 files changed: 19838 ins; 16965 del; 6330 mod
  Patch: https://git.openjdk.org/jdk/pull/23438.diff
  Fetch: git fetch https://git.openjdk.org/jdk.git pull/23438/head:pull/23438

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


More information about the hotspot-compiler-dev mailing list