Mercurial > hg > graal-jvmci-8
diff src/share/vm/adlc/formssel.cpp @ 3839:3d42f82cd811
7063628: Use cbcond on T4
Summary: Add new short branch instruction to Hotspot sparc assembler.
Reviewed-by: never, twisti, jrose
author | kvn |
---|---|
date | Thu, 21 Jul 2011 11:25:07 -0700 |
parents | 2f644f85485d |
children | c7b60b601eb4 |
line wrap: on
line diff
--- a/src/share/vm/adlc/formssel.cpp Thu Jul 21 08:38:25 2011 -0700 +++ b/src/share/vm/adlc/formssel.cpp Thu Jul 21 11:25:07 2011 -0700 @@ -3623,7 +3623,27 @@ assert( mNode2->_opType, "Must have _opType"); const Form *form = globals[_opType]; const Form *form2 = globals[mNode2->_opType]; - return (form == form2); + if( form != form2 ) { + return false; + } + + // Check that their children also match + if (_lChild ) { + if( !_lChild->equivalent(globals, mNode2->_lChild) ) + return false; + } else if (mNode2->_lChild) { + return false; // I have NULL left child, mNode2 has non-NULL left child. + } + + if (_rChild ) { + if( !_rChild->equivalent(globals, mNode2->_rChild) ) + return false; + } else if (mNode2->_rChild) { + return false; // I have NULL right child, mNode2 has non-NULL right child. + } + + // We've made it through the gauntlet. + return true; } //-------------------------- has_commutative_op -------------------------------