Mercurial > hg > icedtea8-forest > hotspot
changeset 10814:0f519a0fd1da
8247979, PR3797: aarch64: missing side effect of killing flags for clearArray_reg_reg
Reviewed-by: adinn
Contributed-by: wangyadong4@huawei.com
author | fyang |
---|---|
date | Mon, 22 Jun 2020 20:26:02 +0800 |
parents | 36f31328f8a5 |
children | 7caa24d952f7 |
files | src/cpu/aarch64/vm/aarch64.ad |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/src/cpu/aarch64/vm/aarch64.ad Thu Jun 04 19:24:54 2020 +0200 +++ b/src/cpu/aarch64/vm/aarch64.ad Mon Jun 22 20:26:02 2020 +0800 @@ -12228,7 +12228,7 @@ instruct clearArray_reg_reg(iRegL_R11 cnt, iRegP_R10 base, Universe dummy, rFlagsReg cr) %{ match(Set dummy (ClearArray cnt base)); - effect(USE_KILL cnt, USE_KILL base); + effect(USE_KILL cnt, USE_KILL base, KILL cr); ins_cost(4 * INSN_COST); format %{ "ClearArray $cnt, $base" %} @@ -12243,7 +12243,7 @@ instruct clearArray_imm_reg(immL cnt, iRegP_R10 base, iRegL_R11 tmp, Universe dummy, rFlagsReg cr) %{ match(Set dummy (ClearArray cnt base)); - effect(USE_KILL base, TEMP tmp); + effect(USE_KILL base, TEMP tmp, KILL cr); ins_cost(4 * INSN_COST); format %{ "ClearArray $cnt, $base" %}