From 570fab9517ef3875e5f6eabf9da5d308af97127d Mon Sep 17 00:00:00 2001 From: Tobias Hartmann Date: Fri, 26 Jul 2024 15:26:59 +0200 Subject: [PATCH] Removed unused code from PhaseMacroExpand::can_eliminate_allocation --- src/hotspot/share/opto/macro.cpp | 6 ------ 1 file changed, 6 deletions(-) diff --git a/src/hotspot/share/opto/macro.cpp b/src/hotspot/share/opto/macro.cpp index 1e2b8b7aeec..b0e68b4d509 100644 --- a/src/hotspot/share/opto/macro.cpp +++ b/src/hotspot/share/opto/macro.cpp @@ -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) {