[riscv-port] RFR: 8280423: riscv: Unnecessary i2l conversion in LIRGenerator::emit_array_address
Feilong Jiang
fjiang at openjdk.java.net
Fri Jan 21 08:32:11 UTC 2022
On Fri, 21 Jan 2022 08:09:51 GMT, Fei Yang <fyang at openjdk.org> wrote:
>> On RISC-V, operands with `T_INT` type are sign-extended implicitly when defined, so i2l conversion is unnecessary.
>> This fix is similar with JDK-8278417, which calls generate_address directly to generate address for array access.
>>
>> All jtregs were tested on QEMU without new failures.
>
> Looks reasonable.
Thanks for the reviews. @RealFYang @yhzhu20
-------------
PR: https://git.openjdk.java.net/riscv-port/pull/51
More information about the riscv-port-dev
mailing list