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

Use NOT instead of XOR -1 on x86

    Details

    • Type: Enhancement
    • Status: Resolved
    • Priority: P4
    • Resolution: Fixed
    • Affects Version/s: hs14
    • Fix Version/s: hs14
    • Component/s: hotspot
    • Labels:
    • Subcomponent:
    • Resolved In Build:
      b06
    • CPU:
      generic
    • OS:
      generic

      Backports

        Description

        On x86, use NOT instead of XOR -1 when possible.

        XOR reg, -1 is 3 bytes, while NOT reg is 2 bytes. Both are 1 cycle. Don't expect earth shattering gains but it is smaller code.

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  rasbold Chuck Rasbold
                  Reporter:
                  rasbold Chuck Rasbold
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  0 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved:
                    Imported:
                    Indexed: