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

RISC-V: Use bgez instruction in arraycopy_simple_check when possible

    XMLWordPrintable

Details

    • Enhancement
    • Resolution: Fixed
    • P4
    • 21
    • 21
    • hotspot
    • b10
    • riscv
    • linux

    Backports

      Description

        Because Klass::_lh_neutral_value is always 0, we can use 'bgez' instead of the combination of 'mv' and 'bge' here for riscv. This could help save one instruction.
        s390 port did similar optimization, refer to src/hotspot/cpu/s390/c1_LIRAssembler_s390.cpp.

        Attachments

          Issue Links

            Activity

              People

                gcao Gui Cao
                gcao Gui Cao
                Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                  Created:
                  Updated:
                  Resolved: