@@ -510,7 +510,7 @@ void GraphKit::uncommon_trap_if_should_post_on_exceptions(Deoptimization::DeoptR
510510 // first must access the should_post_on_exceptions_flag in this thread's JavaThread
511511 Node* jthread = _gvn.transform (new ThreadLocalNode ());
512512 Node* adr = basic_plus_adr (top (), jthread, in_bytes (JavaThread::should_post_on_exceptions_flag_offset ()));
513- Node* should_post_flag = make_load (control (), adr, TypeInt::INT, T_INT, Compile::AliasIdxRaw, MemNode::unordered);
513+ Node* should_post_flag = make_load (control (), adr, TypeInt::INT, T_INT, MemNode::unordered);
514514
515515 // Test the should_post_on_exceptions_flag vs. 0
516516 Node* chk = _gvn.transform ( new CmpINode (should_post_flag, intcon (0 )) );
@@ -1550,15 +1550,14 @@ void GraphKit::set_all_memory_call(Node* call, bool separate_io_proj) {
15501550
15511551// factory methods in "int adr_idx"
15521552Node* GraphKit::make_load (Node* ctl, Node* adr, const Type* t, BasicType bt,
1553- int adr_idx,
15541553 MemNode::MemOrd mo,
15551554 LoadNode::ControlDependency control_dependency,
15561555 bool require_atomic_access,
15571556 bool unaligned,
15581557 bool mismatched,
15591558 bool unsafe,
15601559 uint8_t barrier_data) {
1561- assert ( adr_idx == C->get_alias_index (_gvn.type (adr)->isa_ptr ()), " slice of address and input slice don't match " );
1560+ int adr_idx = C->get_alias_index (_gvn.type (adr)->isa_ptr ());
15621561 assert (adr_idx != Compile::AliasIdxTop, " use other make_load factory" );
15631562 const TypePtr* adr_type = nullptr ; // debug-mode-only argument
15641563 debug_only (adr_type = C->get_adr_type (adr_idx));
@@ -1580,15 +1579,14 @@ Node* GraphKit::make_load(Node* ctl, Node* adr, const Type* t, BasicType bt,
15801579}
15811580
15821581Node* GraphKit::store_to_memory (Node* ctl, Node* adr, Node *val, BasicType bt,
1583- int adr_idx,
15841582 MemNode::MemOrd mo,
15851583 bool require_atomic_access,
15861584 bool unaligned,
15871585 bool mismatched,
15881586 bool unsafe,
15891587 int barrier_data) {
1588+ int adr_idx = C->get_alias_index (_gvn.type (adr)->isa_ptr ());
15901589 assert (adr_idx != Compile::AliasIdxTop, " use other store_to_memory factory" );
1591- assert (adr_idx == C->get_alias_index (_gvn.type (adr)->isa_ptr ()), " slice of address and input slice don't match" );
15921590 const TypePtr* adr_type = nullptr ;
15931591 debug_only (adr_type = C->get_adr_type (adr_idx));
15941592 Node *mem = memory (adr_idx);
@@ -2044,11 +2042,10 @@ void GraphKit::increment_counter(address counter_addr) {
20442042}
20452043
20462044void GraphKit::increment_counter (Node* counter_addr) {
2047- int adr_type = Compile::AliasIdxRaw;
20482045 Node* ctrl = control ();
2049- Node* cnt = make_load (ctrl, counter_addr, TypeLong::LONG, T_LONG, adr_type, MemNode::unordered);
2046+ Node* cnt = make_load (ctrl, counter_addr, TypeLong::LONG, T_LONG, MemNode::unordered);
20502047 Node* incr = _gvn.transform (new AddLNode (cnt, _gvn.longcon (1 )));
2051- store_to_memory (ctrl, counter_addr, incr, T_LONG, adr_type, MemNode::unordered);
2048+ store_to_memory (ctrl, counter_addr, incr, T_LONG, MemNode::unordered);
20522049}
20532050
20542051
@@ -4240,8 +4237,8 @@ void GraphKit::inflate_string_slow(Node* src, Node* dst, Node* start, Node* coun
42404237 set_memory (mem, TypeAryPtr::BYTES);
42414238 Node* ch = load_array_element (src, i_byte, TypeAryPtr::BYTES, /* set_ctrl */ true );
42424239 Node* st = store_to_memory (control (), array_element_address (dst, i_char, T_BYTE),
4243- AndI (ch, intcon (0xff )), T_CHAR, TypeAryPtr::BYTES, MemNode::unordered,
4244- false , false , true /* mismatched */ );
4240+ AndI (ch, intcon (0xff )), T_CHAR, MemNode::unordered, false ,
4241+ false , true /* mismatched */ );
42454242
42464243 IfNode* iff = create_and_map_if (head, Bool (CmpI (i_byte, count), BoolTest::lt), PROB_FAIR, COUNT_UNKNOWN);
42474244 head->init_req (2 , IfTrue (iff));
0 commit comments