Skip to content

Commit

Permalink
Removed unused code from PhaseMacroExpand::can_eliminate_allocation
Browse files Browse the repository at this point in the history
  • Loading branch information
TobiHartmann committed Jul 26, 2024
1 parent 0d27109 commit 570fab9
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions src/hotspot/share/opto/macro.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -690,12 +690,6 @@ bool PhaseMacroExpand::can_eliminate_allocation(PhaseIterGVN* igvn, AllocateNode
NOT_PRODUCT(fail_eliminate = "null or TOP memory";)
can_eliminate = false;
} else if (!reduce_merge_precheck) {
if (res->is_Phi() && res->as_Phi()->can_be_inline_type()) {
// Can only eliminate allocation if the phi had been replaced by an InlineTypeNode before which did not happen.
// TODO 8325106 Why wasn't it replaced by an InlineTypeNode?
assert(false, "TRIGGER");
can_eliminate = false;
}
safepoints->append_if_missing(sfpt);
}
} else if (use->is_InlineType() && use->as_InlineType()->get_oop() == res) {
Expand Down

0 comments on commit 570fab9

Please sign in to comment.