RFR: 8376220: C2: Refactor the logic to in MemNode::find_previous_store

Quan Anh Mai qamai at openjdk.org
Fri Jan 23 16:00:28 UTC 2026


Hi,

This patch refactors the logic in `MemNode::find_previous_store` and makes a small improvement to `MemNode::detect_ptr_independence`. An IR test accompanies the improvement.

Please take a look and share your thoughts, thanks a lot.

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

Commit messages:
 - Refactor the logic in MemNode::find_previous_store

Changes: https://git.openjdk.org/jdk/pull/29390/files
  Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=29390&range=00
  Issue: https://bugs.openjdk.org/browse/JDK-8376220
  Stats: 170 lines in 2 files changed: 133 ins; 10 del; 27 mod
  Patch: https://git.openjdk.org/jdk/pull/29390.diff
  Fetch: git fetch https://git.openjdk.org/jdk.git pull/29390/head:pull/29390

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


More information about the hotspot-compiler-dev mailing list