--- a/hotspot/src/share/vm/adlc/formssel.cpp Mon Dec 08 17:15:02 2008 -0800
+++ b/hotspot/src/share/vm/adlc/formssel.cpp Tue Dec 09 12:41:26 2008 -0800
@@ -1102,10 +1102,7 @@
}
if( pred1 != NULL && pred2 != NULL ) {
// compare the predicates
- const char *str1 = pred1->_pred;
- const char *str2 = pred2->_pred;
- if( (str1 == NULL && str2 == NULL)
- || (str1 != NULL && str2 != NULL && strcmp(str1,str2) == 0) ) {
+ if (ADLParser::equivalent_expressions(pred1->_pred, pred2->_pred)) {
return true;
}
}