Use NOT instead of XOR -1 on x86

XMLWordPrintable

    • Type: Enhancement
    • Resolution: Fixed
    • Priority: P4
    • hs14
    • Affects Version/s: hs14
    • Component/s: hotspot
    • b06
    • generic
    • generic

        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.

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

                Created:
                Updated:
                Resolved:
                Imported:
                Indexed: