RFR: 8360520: RISC-V: C1: Fix primitive array clone intrinsic regression after JDK-8333154 [v4]

Feilong Jiang fjiang at openjdk.org
Mon Jul 21 02:30:41 UTC 2025


On Thu, 10 Jul 2025 22:43:16 GMT, Dean Long <dlong at openjdk.org> wrote:

>> Feilong Jiang has updated the pull request with a new target base due to a merge or a rebase. The incremental webrev excludes the unrelated changes brought in by the merge/rebase. The pull request contains six additional commits since the last revision:
>> 
>>  - Merge branch 'master' of https://github.com/openjdk/jdk into riscv-fix-c1-primitive-clone
>>  - Merge branch 'master' of https://github.com/openjdk/jdk into riscv-fix-c1-primitive-clone
>>  - Revert RISCV Macro modification
>>  - Merge branch 'master' of https://github.com/openjdk/jdk into riscv-fix-c1-primitive-clone
>>  - check unaligned flag at LIR_OpArrayCopy to avoid using AvoidUnalignedAccesses
>>  - riscv: fix c1 primitive array clone intrinsic regression
>
> src/hotspot/cpu/riscv/c1_LIRGenerator_riscv.cpp line 775:
> 
>> 773:   arraycopy_helper(x, &flags, &expected_type);
>> 774:   if (x->check_flag(Instruction::OmitChecksFlag)) {
>> 775:     flags = (flags & LIR_OpArrayCopy::unaligned);
> 
> Should be LIR_OpArrayCopy::unaligned|LIR_OpArrayCopy::overlapping? See below.

fixed.

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

PR Review Comment: https://git.openjdk.org/jdk/pull/25976#discussion_r2218083182


More information about the hotspot-compiler-dev mailing list