Auto-vectorization for integer min/max

XMLWordPrintable

    • Type: Enhancement
    • Resolution: Fixed
    • Priority: P4
    • 20
    • Affects Version/s: 19, 20
    • Component/s: hotspot
    • b07
    • generic
    • generic

      Math.min/max operations are not auto-vectorized by default for integers.
      C2 generates the cmp-csel instructions for Math.min/max but they can be auto-vectorized to generate the smin/smax instructions on aarch64, vpmaxsd/vpminsd on x86.

            Assignee:
            Stuart Monteith
            Reporter:
            Stuart Monteith
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: