Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8280423

riscv: Unnecessary i2l conversion in LIRGenerator::emit_array_address

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P4 P4
    • repo-riscv-port
    • repo-riscv-port
    • hotspot
    • None

      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.

            fjiang Feilong Jiang
            fjiang Feilong Jiang
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: