Skip to content

Commit

Permalink
8314190: [lworld] Missing InlineTypeNode re-materialization during ty…
Browse files Browse the repository at this point in the history
…pe sharpening.
  • Loading branch information
jatin-bhateja committed Aug 15, 2023
1 parent 054524e commit c69d885
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/hotspot/share/opto/parse2.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2437,6 +2437,10 @@ void Parse::sharpen_type_after_if(BoolTest::mask btest,
// at the control merge.
_gvn.set_type_bottom(ccast);
record_for_igvn(ccast);
if (tboth->is_inlinetypeptr()) {
assert(tboth->exact_klass(true)->is_inlinetype(), "");
ccast = InlineTypeNode::make_from_oop(this, ccast, tboth->exact_klass(true)->as_inline_klass());
}
// Here's the payoff.
replace_in_map(obj, ccast);
}
Expand Down

0 comments on commit c69d885

Please sign in to comment.