RFR: 8351101: RISC-V: C2: Small improvement to MacroAssembler::revb

Hamlin Li mli at openjdk.org
Tue Mar 4 10:19:59 UTC 2025


On Tue, 4 Mar 2025 01:28:32 GMT, Fei Yang <fyang at openjdk.org> wrote:

> Hi, please review this small improvement.
> After logic shift right 56 bits, there is no need to zero extend the remaining 8-bit value.
> The reason is that the upper bits will be all zeros as this is a logic shift right.
> Testing: `hotspot:tier1` is clean on linux-riscv64 platform with this change.

Looks good.

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

Marked as reviewed by mli (Reviewer).

PR Review: https://git.openjdk.org/jdk/pull/23879#pullrequestreview-2656812931


More information about the hotspot-dev mailing list