< prev index next >
src/hotspot/share/c1/c1_GraphBuilder.cpp
Print this page
@@ -1241,12 +1241,11 @@
BlockBegin* tsux = block_at(stream()->get_dest());
BlockBegin* fsux = block_at(stream()->next_bci());
bool is_bb = tsux->bci() < stream()->cur_bci() || fsux->bci() < stream()->cur_bci();
bool subst_check = false;
- if (EnableValhalla && ACmpOnValues == 3 &&
- (stream()->cur_bc() == Bytecodes::_if_acmpeq || stream()->cur_bc() == Bytecodes::_if_acmpne) &&
+ if (EnableValhalla && (stream()->cur_bc() == Bytecodes::_if_acmpeq || stream()->cur_bc() == Bytecodes::_if_acmpne) &&
method() != ciEnv::current()->ValueBootstrapMethods_klass()->find_method(ciSymbol::isSubstitutable_name(), ciSymbol::object_object_boolean_signature())) {
// If current method is ValueBootstrapMethods::isSubstitutable(),
// compile the acmp as a regular pointer comparison otherwise we
// could call ValueBootstrapMethods::isSubstitutable() back
ValueType* left_vt = x->type();
< prev index next >