Skip to content

Commit 0699220

Browse files
author
Rickard Bäckman
committedNov 9, 2021
8268882: C2: assert(n->outcnt() != 0 || C->top() == n || n->is_Proj()) failed: No dead instructions after post-alloc
Reviewed-by: neliasso, chagedorn, kvn
1 parent d7012fb commit 0699220

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎src/hotspot/share/opto/postaloc.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -611,7 +611,7 @@ void PhaseChaitin::post_allocate_copy_removal() {
611611
if( phi != x && u != x ) // Found a different input
612612
u = u ? NodeSentinel : x; // Capture unique input, or NodeSentinel for 2nd input
613613
}
614-
if (u != NodeSentinel) { // Junk Phi. Remove
614+
if (u != NodeSentinel || phi->outcnt() == 0) { // Junk Phi. Remove
615615
phi->replace_by(u);
616616
j -= yank_if_dead(phi, block, &value, &regnd);
617617
phi_dex--;

0 commit comments

Comments
 (0)