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

RISC-V: Use bgez instruction in arraycopy_simple_check when possible

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Fixed
    • Icon: P4 P4
    • 21
    • 21
    • 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.

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

                Created:
                Updated:
                Resolved: