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

Auto-vectorization for integer min/max

    XMLWordPrintable

Details

    • Enhancement
    • Resolution: Fixed
    • P4
    • 20
    • 19, 20
    • hotspot
    • b07
    • generic
    • generic

    Description

      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.

      Attachments

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved: