mirror of
https://github.com/openjdk/jdk.git
synced 2025-09-21 11:34:38 +02:00
6716441: error in meet with +DoEscapeAnalysis
Set instance_id to InstanceBot for InstPtr->meet(AryPtr) when types are not related. Reviewed-by: jrose, never
This commit is contained in:
parent
873da1efe8
commit
4213e62fb7
11 changed files with 1088 additions and 139 deletions
|
@ -320,9 +320,9 @@ Node *PhaseMacroExpand::value_from_mem_phi(Node *mem, BasicType ft, const Type *
|
|||
|
||||
// Search the last value stored into the object's field.
|
||||
Node *PhaseMacroExpand::value_from_mem(Node *sfpt_mem, BasicType ft, const Type *ftype, const TypeOopPtr *adr_t, Node *alloc) {
|
||||
assert(adr_t->is_instance_field(), "instance required");
|
||||
uint instance_id = adr_t->instance_id();
|
||||
assert(instance_id == alloc->_idx, "wrong allocation");
|
||||
assert(adr_t->is_known_instance_field(), "instance required");
|
||||
int instance_id = adr_t->instance_id();
|
||||
assert((uint)instance_id == alloc->_idx, "wrong allocation");
|
||||
|
||||
int alias_idx = C->get_alias_index(adr_t);
|
||||
int offset = adr_t->offset();
|
||||
|
@ -354,7 +354,7 @@ Node *PhaseMacroExpand::value_from_mem(Node *sfpt_mem, BasicType ft, const Type
|
|||
const TypeOopPtr* atype = mem->as_Store()->adr_type()->isa_oopptr();
|
||||
assert(atype != NULL, "address type must be oopptr");
|
||||
assert(C->get_alias_index(atype) == alias_idx &&
|
||||
atype->is_instance_field() && atype->offset() == offset &&
|
||||
atype->is_known_instance_field() && atype->offset() == offset &&
|
||||
atype->instance_id() == instance_id, "store is correct memory slice");
|
||||
done = true;
|
||||
} else if (mem->is_Phi()) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue