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

x86 popcnt: false dependency on destination register

    XMLWordPrintable

Details

    Description

      Originally found here:
      http://stackoverflow.com/questions/25078285/replacing-a-32-bit-loop-count-variable-with-64-bit-introduces-crazy-performance

      It seems newish Intel x86 processors treat the destination register for popcnt as the input, and wait for it to be ready in order to continue execution.

      Attachments

        Activity

          People

            Unassigned Unassigned
            shade Aleksey Shipilev
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated: