RFR: 8355980: RISC-V: remove vmclr_m before vmsXX and vmfXX

Dingli Zhang dzhang at openjdk.org
Wed Apr 30 15:26:43 UTC 2025


On Wed, 30 Apr 2025 14:46:23 GMT, Hamlin Li <mli at openjdk.org> wrote:

> Hi,
> Can you help to review this simple improvement?
> 
> By rvv spec,
> "integer compare instructions write 1 to the destination mask register element if the comparison evaluates to true, and 0 otherwise."
> "These vector FP compare instructions compare two source operands and write the comparison result to a mask register. "
> 
> So, it's not always necessary to clear the mask register before vector comparison operation, e.g. when `vm != Assembler::v0_t`.
> 
> Thanks!

Looks good, thanks!

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

Marked as reviewed by dzhang (Author).

PR Review: https://git.openjdk.org/jdk/pull/24968#pullrequestreview-2807480879


More information about the hotspot-compiler-dev mailing list