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

Auto-vectorization for integer min/max

XMLWordPrintable

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

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

              Created:
              Updated:
              Resolved: