hotspot/src/share/vm/c1/c1_Canonicalizer.cpp
changeset 6461 cfc616b49f58
parent 6453 970dc585ab63
child 6745 a34ef8968a84
equal deleted inserted replaced
6460:6f5143b00f4c 6461:cfc616b49f58
   671         }
   671         }
   672       }
   672       }
   673     } else if (l->as_InstanceOf() != NULL) {
   673     } else if (l->as_InstanceOf() != NULL) {
   674       // NOTE: Code permanently disabled for now since it leaves the old InstanceOf
   674       // NOTE: Code permanently disabled for now since it leaves the old InstanceOf
   675       //       instruction in the graph (it is pinned). Need to fix this at some point.
   675       //       instruction in the graph (it is pinned). Need to fix this at some point.
       
   676       //       It should also be left in the graph when generating a profiled method version or Goto
       
   677       //       has to know that it was an InstanceOf.
   676       return;
   678       return;
   677       // pattern: If ((obj instanceof klass) cond rc) => simplify to: IfInstanceOf or: Goto
   679       // pattern: If ((obj instanceof klass) cond rc) => simplify to: IfInstanceOf or: Goto
   678       InstanceOf* inst = l->as_InstanceOf();
   680       InstanceOf* inst = l->as_InstanceOf();
   679       BlockBegin* is_inst_sux = x->sux_for(is_true(1, x->cond(), rc)); // successor for instanceof == 1
   681       BlockBegin* is_inst_sux = x->sux_for(is_true(1, x->cond(), rc)); // successor for instanceof == 1
   680       BlockBegin* no_inst_sux = x->sux_for(is_true(0, x->cond(), rc)); // successor for instanceof == 0
   682       BlockBegin* no_inst_sux = x->sux_for(is_true(0, x->cond(), rc)); // successor for instanceof == 0