RFR: 8353551: C2: Constant folding for ReverseBytes nodes [v2]

Hannes Greule hgreule at openjdk.org
Tue Apr 8 08:15:55 UTC 2025


> This change implements constant folding for ReverseBytes nodes.
> 
> Currently, `byteswap` is included transitively by `reverse_bits.hpp`. I'm not sure if this is fine or if I need to add an explicit include there.
> 
> I appreciate any reviews and comments.

Hannes Greule has updated the pull request incrementally with one additional commit since the last revision:

  add test cases with negative -> non-negative

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

Changes:
  - all: https://git.openjdk.org/jdk/pull/24382/files
  - new: https://git.openjdk.org/jdk/pull/24382/files/51d0a5d1..dc046768

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

  Stats: 32 lines in 1 file changed: 28 ins; 0 del; 4 mod
  Patch: https://git.openjdk.org/jdk/pull/24382.diff
  Fetch: git fetch https://git.openjdk.org/jdk.git pull/24382/head:pull/24382

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


More information about the hotspot-compiler-dev mailing list