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

Don't use Math.min/max intrinsic on x86

XMLWordPrintable

    • Cause Known
    • x86
    • generic

      Math.min/max intrinsic unconditionally generates cmove instructions on x86 which may perform much worse than branch depending on probability of branches.
      We have code in PhaseIdealLoop::conditional_move() which takes into account branch's probability.
      I suggest to not use LibraryCallKit::inline_min_max() on CPUs which have good predictors (modern x86).

            kvn Vladimir Kozlov
            kvn Vladimir Kozlov
            Votes:
            0 Vote for this issue
            Watchers:
            9 Start watching this issue

              Created:
              Updated: