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

Reviewed-by: neliasso, chagedorn, kvn
  • Loading branch information
Rickard Bäckman committed Nov 9, 2021
1 parent d7012fb commit 0699220830a457959b784b35af125b70f43fa3b0
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--;

5 comments on commit 0699220

@openjdk-notifier
Copy link

@openjdk-notifier openjdk-notifier bot commented on 0699220 Nov 9, 2021

Choose a reason for hiding this comment

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

@TheRealMDoerr
Copy link
Contributor

@TheRealMDoerr TheRealMDoerr commented on 0699220 Nov 15, 2021

Choose a reason for hiding this comment

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

/backport jdk11u-dev

@openjdk
Copy link

@openjdk openjdk bot commented on 0699220 Nov 15, 2021

Choose a reason for hiding this comment

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

@TheRealMDoerr @TheRealMDoerr the backport was successfully created on the branch TheRealMDoerr-backport-06992208 in my personal fork of openjdk/jdk11u-dev. To create a pull request with this backport targeting openjdk/jdk11u-dev:master, just click the following link:

➡️ Create pull request

The title of the pull request is automatically filled in correctly and below you find a suggestion for the pull request body:

Hi all,

this pull request contains a backport of commit 06992208 from the openjdk/jdk repository.

The commit being backported was authored by Rickard Bäckman on 9 Nov 2021 and was reviewed by Nils Eliasson, Christian Hagedorn and Vladimir Kozlov.

Thanks!

If you need to update the source branch of the pull then run the following commands in a local clone of your personal fork of openjdk/jdk11u-dev:

$ git fetch https://github.com/openjdk-bots/jdk11u-dev TheRealMDoerr-backport-06992208:TheRealMDoerr-backport-06992208
$ git checkout TheRealMDoerr-backport-06992208
# make changes
$ git add paths/to/changed/files
$ git commit --message 'Describe additional changes made'
$ git push https://github.com/openjdk-bots/jdk11u-dev TheRealMDoerr-backport-06992208

@TheRealMDoerr
Copy link
Contributor

@TheRealMDoerr TheRealMDoerr commented on 0699220 Nov 15, 2021

Choose a reason for hiding this comment

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

/backport jdk17u

@openjdk
Copy link

@openjdk openjdk bot commented on 0699220 Nov 15, 2021

Choose a reason for hiding this comment

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

@TheRealMDoerr @TheRealMDoerr the backport was successfully created on the branch TheRealMDoerr-backport-06992208 in my personal fork of openjdk/jdk17u. To create a pull request with this backport targeting openjdk/jdk17u:master, just click the following link:

➡️ Create pull request

The title of the pull request is automatically filled in correctly and below you find a suggestion for the pull request body:

Hi all,

this pull request contains a backport of commit 06992208 from the openjdk/jdk repository.

The commit being backported was authored by Rickard Bäckman on 9 Nov 2021 and was reviewed by Nils Eliasson, Christian Hagedorn and Vladimir Kozlov.

Thanks!

If you need to update the source branch of the pull then run the following commands in a local clone of your personal fork of openjdk/jdk17u:

$ git fetch https://github.com/openjdk-bots/jdk17u TheRealMDoerr-backport-06992208:TheRealMDoerr-backport-06992208
$ git checkout TheRealMDoerr-backport-06992208
# make changes
$ git add paths/to/changed/files
$ git commit --message 'Describe additional changes made'
$ git push https://github.com/openjdk-bots/jdk17u TheRealMDoerr-backport-06992208

Please sign in to comment.