Integrated: 8355980: RISC-V: remove vmclr_m before vmsXX and vmfXX
Hamlin Li
mli at openjdk.org
Fri May 2 08:33:54 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!
This pull request has now been integrated.
Changeset: 811f117c
Author: Hamlin Li <mli at openjdk.org>
URL: https://git.openjdk.org/jdk/commit/811f117ce396ac7aafd71f5618f2de96bb96f311
Stats: 6 lines in 1 file changed: 4 ins; 0 del; 2 mod
8355980: RISC-V: remove vmclr_m before vmsXX and vmfXX
Reviewed-by: dzhang, fyang
-------------
PR: https://git.openjdk.org/jdk/pull/24968
More information about the hotspot-compiler-dev
mailing list