RFR: 8353551: C2: Constant folding for ReverseBytes nodes

Hannes Greule hgreule at openjdk.org
Wed Apr 2 16:24:23 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.

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

Commit messages:
 - Implement constant folding for ReverseBytes*Nodes

Changes: https://git.openjdk.org/jdk/pull/24382/files
  Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=24382&range=00
  Issue: https://bugs.openjdk.org/browse/JDK-8353551
  Stats: 204 lines in 3 files changed: 204 ins; 0 del; 0 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