United StatesChange Country, Oracle Worldwide Web Sites Communities I am a... I want to...
Bug ID: JDK-5057225 Remove useless I2L conversions
JDK-5057225 : Remove useless I2L conversions

Details
Type:
Enhancement
Submit Date:
2004-06-03
Status:
Resolved
Updated Date:
2014-01-18
Project Name:
JDK
Resolved Date:
2009-12-18
Component:
hotspot
OS:
solaris_8
Sub-Component:
compiler
CPU:
generic
Priority:
P3
Resolution:
Fixed
Affected Versions:
6
Fixed Versions:
hs16 (b06)

Related Reports
Backport:
Backport:
Relates:
Relates:

Sub Tasks

Description
The optimizer should be told to normalize (AndL (ConvI2L x) 0xFF) to (ConvI2L   
(AndI x 0xFF)), and then the existing matcher rule will work for free.  The    
suggested fix is OK only as a point fix in Tiger, since it mixes optimizer     
knowledge into the matcher.                                                    
                                                                                
The optimizer should commute I2L with And for any mask that fits in 32 bits.    
Also, the matcher should get rid of LDSB for any mask less than 0xFF.   Also,  
the matcher should remove useless I2UL conversions in more places.  These are  
more profitable and complex fixes, for Dragon.                         

                                    

Comments
EVALUATION

Dragon work
###@###.### 2004-06-03
                                     
2004-06-03
CONVERTED DATA

BugTraq+ Release Management Values

COMMIT TO FIX:
mustang


                                     
2004-09-02
EVALUATION

http://hg.openjdk.java.net/jdk7/hotspot-comp/hotspot/rev/18a08a7e16b5
                                     
2009-06-26



Hardware and Software, Engineered to Work Together