hotspot/src/share/vm/adlc/formssel.cpp
changeset 41318 af7443b374fb
parent 40088 02cc68c622b2
child 41323 ddd5600d4762
equal deleted inserted replaced
41065:d1b98cc38f04 41318:af7443b374fb
  1243 bool InstructForm::check_branch_variant(ArchDesc &AD, InstructForm *short_branch) {
  1243 bool InstructForm::check_branch_variant(ArchDesc &AD, InstructForm *short_branch) {
  1244   if (_matrule != NULL &&
  1244   if (_matrule != NULL &&
  1245       this != short_branch &&   // Don't match myself
  1245       this != short_branch &&   // Don't match myself
  1246       !is_short_branch() &&     // Don't match another short branch variant
  1246       !is_short_branch() &&     // Don't match another short branch variant
  1247       reduce_result() != NULL &&
  1247       reduce_result() != NULL &&
       
  1248       strstr(_ident, "restoreMask") == NULL && // Don't match side effects
  1248       strcmp(reduce_result(), short_branch->reduce_result()) == 0 &&
  1249       strcmp(reduce_result(), short_branch->reduce_result()) == 0 &&
  1249       _matrule->equivalent(AD.globalNames(), short_branch->_matrule)) {
  1250       _matrule->equivalent(AD.globalNames(), short_branch->_matrule)) {
  1250     // The instructions are equivalent.
  1251     // The instructions are equivalent.
  1251 
  1252 
  1252     // Now verify that both instructions have the same parameters and
  1253     // Now verify that both instructions have the same parameters and