Java Solaris Communities Sun Store Join SDN My Profile Why Join?
 
Bug Database
Bug Detail
Quick Lists
Top 25 Bugs
Top 25 RFE's
Recently Closed Bugs
Printable Page Printable Page


Bug Database
Bug ID: 6752257
Votes 0
Synopsis Use NOT instead of XOR -1 on x86
Category hotspot:compiler2
Reported Against
Release Fixed hs14(b06)
State 10-Fix Delivered, request for enhancement
Priority: 4-Low
Related Bugs
Submit Date 24-SEP-2008
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.
Posted Date : 2008-09-24 21:33:43.0
Work Around
N/A
Evaluation
Give it a try.
Posted Date : 2008-09-24 21:33:43.0

http://hg.openjdk.java.net/jdk7/hotspot-comp/hotspot/rev/b744678d4d71
Posted Date : 2008-10-10 19:26:35.0
Comments
  
  Include a link with my name & email   


PLEASE NOTE: JDK6 is formerly known as Project Mustang