comparison src/share/vm/adlc/formssel.cpp @ 362:f8199438385b

Merge
author apetrusenko
date Wed, 17 Sep 2008 16:49:18 +0400
parents 1ee8caae33af
children 4d9884b01ba6
comparison
equal deleted inserted replaced
316:5fa96a5a7e76 362:f8199438385b
3766 } 3766 }
3767 3767
3768 int MatchRule::is_ideal_copy() const { 3768 int MatchRule::is_ideal_copy() const {
3769 if( _rChild ) { 3769 if( _rChild ) {
3770 const char *opType = _rChild->_opType; 3770 const char *opType = _rChild->_opType;
3771 #if 1
3772 if( strcmp(opType,"CastIP")==0 )
3773 return 1;
3774 #else
3771 if( strcmp(opType,"CastII")==0 ) 3775 if( strcmp(opType,"CastII")==0 )
3772 return 1; 3776 return 1;
3773 // Do not treat *CastPP this way, because it 3777 // Do not treat *CastPP this way, because it
3774 // may transfer a raw pointer to an oop. 3778 // may transfer a raw pointer to an oop.
3775 // If the register allocator were to coalesce this 3779 // If the register allocator were to coalesce this
3785 // Output(). 3789 // Output().
3786 //if( strcmp(opType,"CastX2P")==0 ) 3790 //if( strcmp(opType,"CastX2P")==0 )
3787 // return 1; 3791 // return 1;
3788 //if( strcmp(opType,"CastP2X")==0 ) 3792 //if( strcmp(opType,"CastP2X")==0 )
3789 // return 1; 3793 // return 1;
3794 #endif
3790 } 3795 }
3791 if( is_chain_rule(_AD.globalNames()) && 3796 if( is_chain_rule(_AD.globalNames()) &&
3792 _lChild && strncmp(_lChild->_opType,"stackSlot",9)==0 ) 3797 _lChild && strncmp(_lChild->_opType,"stackSlot",9)==0 )
3793 return 1; 3798 return 1;
3794 return 0; 3799 return 0;