Skip to content
Permalink
Browse files
8257154: [lworld] AndLNode::Identity optimization does not handle top…
… input
  • Loading branch information
TobiHartmann committed Nov 26, 2020
1 parent 9108c12 commit 89dde2a958bdea7049e0e528ed532de9430de9b8
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/hotspot/share/opto/mulnode.cpp
@@ -605,8 +605,8 @@ Node* AndLNode::Identity(PhaseGVN* phase) {

// Check if this is part of an inline type test
if (con == markWord::inline_type_pattern && in(1)->is_Load() &&
phase->type(in(1)->in(MemNode::Address))->is_ptr()->offset() == oopDesc::mark_offset_in_bytes() &&
phase->type(in(1)->in(MemNode::Address))->is_inlinetypeptr()) {
phase->type(in(1)->in(MemNode::Address))->is_inlinetypeptr() &&
phase->type(in(1)->in(MemNode::Address))->is_ptr()->offset() == oopDesc::mark_offset_in_bytes()) {
assert(EnableValhalla, "should only be used for inline types");
return in(2); // Obj is known to be an inline type
}

0 comments on commit 89dde2a

Please sign in to comment.