RFR: 8373999: C2: apply KnownBits and unsigned bounds to Add / Sub operations [v3]

Quan Anh Mai qamai at openjdk.org
Sun Dec 21 15:28:37 UTC 2025


> Hi,
> 
> This PR improves the implementation of `AddNode/SubNode::Value` by taking advantage of the additional information in `TypeInt`. The implementation has some pretty non-trivial logic. Fortunately, the test infrastructure is already there.
> 
> Please take a look and leave your reviews, thanks a lot.

Quan Anh Mai 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 three additional commits since the last revision:

 - Merge branch 'master' into addsub
 - include order
 - Improve Add/SubNode::Value with unsigned bounds and known bits

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

Changes:
  - all: https://git.openjdk.org/jdk/pull/28897/files
  - new: https://git.openjdk.org/jdk/pull/28897/files/f910e70b..a0ff1f67

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

  Stats: 3134 lines in 117 files changed: 1954 ins; 560 del; 620 mod
  Patch: https://git.openjdk.org/jdk/pull/28897.diff
  Fetch: git fetch https://git.openjdk.org/jdk.git pull/28897/head:pull/28897

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


More information about the hotspot-compiler-dev mailing list