hotspot/src/share/vm/adlc/formssel.cpp
changeset 1374 4c24294029a9
parent 360 21d113ecbf6a
child 1376 f7fc7a708b63
--- a/hotspot/src/share/vm/adlc/formssel.cpp	Wed Jun 04 13:51:09 2008 -0700
+++ b/hotspot/src/share/vm/adlc/formssel.cpp	Thu Jun 05 15:57:56 2008 -0700
@@ -3767,6 +3767,10 @@
 int MatchRule::is_ideal_copy() const {
   if( _rChild ) {
     const char  *opType = _rChild->_opType;
+#if 1
+    if( strcmp(opType,"CastIP")==0 )
+      return 1;
+#else
     if( strcmp(opType,"CastII")==0 )
       return 1;
     // Do not treat *CastPP this way, because it
@@ -3786,6 +3790,7 @@
     //  return 1;
     //if( strcmp(opType,"CastP2X")==0 )
     //  return 1;
+#endif
   }
   if( is_chain_rule(_AD.globalNames()) &&
       _lChild && strncmp(_lChild->_opType,"stackSlot",9)==0 )