Mercurial > hg > graal-compiler
comparison src/share/vm/adlc/formssel.cpp @ 342:37f87013dfd8
6711316: Open source the Garbage-First garbage collector
Summary: First mercurial integration of the code for the Garbage-First garbage collector.
Reviewed-by: apetrusenko, iveresov, jmasa, sgoldman, tonyp, ysr
author | ysr |
---|---|
date | Thu, 05 Jun 2008 15:57:56 -0700 |
parents | ba764ed4b6f2 |
children | 6aae2f9d0294 |
comparison
equal
deleted
inserted
replaced
189:0b27f3512f9e | 342:37f87013dfd8 |
---|---|
3765 } | 3765 } |
3766 | 3766 |
3767 int MatchRule::is_ideal_copy() const { | 3767 int MatchRule::is_ideal_copy() const { |
3768 if( _rChild ) { | 3768 if( _rChild ) { |
3769 const char *opType = _rChild->_opType; | 3769 const char *opType = _rChild->_opType; |
3770 #if 1 | |
3771 if( strcmp(opType,"CastIP")==0 ) | |
3772 return 1; | |
3773 #else | |
3770 if( strcmp(opType,"CastII")==0 ) | 3774 if( strcmp(opType,"CastII")==0 ) |
3771 return 1; | 3775 return 1; |
3772 // Do not treat *CastPP this way, because it | 3776 // Do not treat *CastPP this way, because it |
3773 // may transfer a raw pointer to an oop. | 3777 // may transfer a raw pointer to an oop. |
3774 // If the register allocator were to coalesce this | 3778 // If the register allocator were to coalesce this |
3784 // Output(). | 3788 // Output(). |
3785 //if( strcmp(opType,"CastX2P")==0 ) | 3789 //if( strcmp(opType,"CastX2P")==0 ) |
3786 // return 1; | 3790 // return 1; |
3787 //if( strcmp(opType,"CastP2X")==0 ) | 3791 //if( strcmp(opType,"CastP2X")==0 ) |
3788 // return 1; | 3792 // return 1; |
3793 #endif | |
3789 } | 3794 } |
3790 if( is_chain_rule(_AD.globalNames()) && | 3795 if( is_chain_rule(_AD.globalNames()) && |
3791 _lChild && strncmp(_lChild->_opType,"stackSlot",9)==0 ) | 3796 _lChild && strncmp(_lChild->_opType,"stackSlot",9)==0 ) |
3792 return 1; | 3797 return 1; |
3793 return 0; | 3798 return 0; |