RISC-V: Use bgez instruction in arraycopy_simple_check when possible

XMLWordPrintable

    • Type: Enhancement
    • Resolution: Fixed
    • Priority: P4
    • 21
    • Affects Version/s: 21
    • Component/s: hotspot
    • b10
    • riscv
    • linux

        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.

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

                Created:
                Updated:
                Resolved: