RFR: 8353276: C2: simplify PhaseMacroExpand::opt_bits_test

Saranya Natarajan snatarajan at openjdk.org
Fri Jul 11 22:24:54 UTC 2025


**Issue** 
The last three parameters of `PhaseMacroExpand::opt_bits_test(Node* ctrl, Node* region, int edge, Node* word, int mask, int bits, bool return_fast_path)` are unnecessary after the fix introduced in [JDK-8256425](https://bugs.openjdk.org/browse/JDK-8256425)

**Fix** 
The proposed fix removes the last three parameters and makes the necessary modification to the methods. 

**Testing**
GitHub Actions
tier1 to tier5 on windows-x64, linux-x64, linux-aarch64, macosx-x64, and macosx-aarch64.

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

Commit messages:
 - initial fix

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

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


More information about the hotspot-compiler-dev mailing list