Integrated: 8301628: RISC-V: c2 fix pipeline class for several instructions

Gui Cao gcao at openjdk.org
Mon Feb 6 02:31:57 UTC 2023


On Thu, 2 Feb 2023 01:46:05 GMT, Gui Cao <gcao at openjdk.org> wrote:

> HI,
> 
> The current C2 instructions can use some more accurate ins_pipe, eg.:
> 
> instruct regI_not_reg(iRegINoSp dst, iRegI src1, immI_M1 m1) %{
>   match(Set dst (XorI src1 m1));
>   ins_cost(ALU_COST);
>   format %{ "xori  $dst, $src1, -1\t#@regI_not_reg" %}
> 
>   ins_encode %{
>     __ xori(as_Register($dst$$reg), as_Register($src1$$reg), -1);
>   %}
> 
>   ins_pipe(ialu_reg);
> %}
> 
> 
> We can use the more accurate pipe_class `ialu_reg_imm` instead.
> 
> Please take a look and have some reviews. Thanks a lot.
> 
> ## Testing:
> - hotspot and jdk tier1 on unmatched board without new failures

This pull request has now been integrated.

Changeset: 8507db15
Author:    Gui Cao <gcao at openjdk.org>
Committer: Fei Yang <fyang at openjdk.org>
URL:       https://git.openjdk.org/jdk/commit/8507db1567e3a524238f5145ed08fd1d80a2a2b2
Stats:     27 lines in 1 file changed: 8 ins; 0 del; 19 mod

8301628: RISC-V: c2 fix pipeline class for several instructions

Reviewed-by: fjiang, fyang, luhenry

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

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


More information about the hotspot-compiler-dev mailing list