Skip to content
Permalink
Browse files
8268882: C2: assert(n->outcnt() != 0 || C->top() == n || n->is_Proj()…
…) failed: No dead instructions after post-alloc

Backport-of: 0699220830a457959b784b35af125b70f43fa3b0
  • Loading branch information
TheRealMDoerr committed Nov 17, 2021
1 parent f9eed14 commit 95573d443ba1c27e4c985f77a501e7681c0b60f8
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/hotspot/share/opto/postaloc.cpp
@@ -611,7 +611,7 @@ void PhaseChaitin::post_allocate_copy_removal() {
if( phi != x && u != x ) // Found a different input
u = u ? NodeSentinel : x; // Capture unique input, or NodeSentinel for 2nd input
}
if (u != NodeSentinel) { // Junk Phi. Remove
if (u != NodeSentinel || phi->outcnt() == 0) { // Junk Phi. Remove
phi->replace_by(u);
j -= yank_if_dead(phi, block, &value, &regnd);
phi_dex--;

1 comment on commit 95573d4

@openjdk-notifier
Copy link

@openjdk-notifier openjdk-notifier bot commented on 95573d4 Nov 17, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.