Skip to content

JIT: Remove dead GT_NOP code in LSRA#94409

Merged
jakobbotsch merged 1 commit into
dotnet:mainfrom
jakobbotsch:remove-dead-code
Nov 7, 2023
Merged

JIT: Remove dead GT_NOP code in LSRA#94409
jakobbotsch merged 1 commit into
dotnet:mainfrom
jakobbotsch:remove-dead-code

Conversation

@jakobbotsch

Copy link
Copy Markdown
Member

Rationalization removes all GT_NOP nodes, and we do not seem to introduce any of these before LSRA (and especially not the typed "passthrough" GT_NOP nodes). This code is just wrong for the passthrough nodes, so just switch all the LSRA code to only handle potential void NOPs.

Fix #93048

Rationalization removes all GT_NOP nodes, and we do not seem to
introduce any of these before LSRA (and especially not the typed
"passthrough" GT_NOP nodes). This code is just wrong for the passthrough
nodes, so just switch all the LSRA code to only handle potential void
NOPs.

Fix dotnet#93048
@ghost ghost added the area-CodeGen-coreclr CLR JIT compiler in src/coreclr/src/jit and related components such as SuperPMI label Nov 6, 2023
@ghost ghost assigned jakobbotsch Nov 6, 2023
@ghost

ghost commented Nov 6, 2023

Copy link
Copy Markdown

Tagging subscribers to this area: @JulieLeeMSFT, @jakobbotsch
See info in area-owners.md if you want to be subscribed.

Issue Details

Rationalization removes all GT_NOP nodes, and we do not seem to introduce any of these before LSRA (and especially not the typed "passthrough" GT_NOP nodes). This code is just wrong for the passthrough nodes, so just switch all the LSRA code to only handle potential void NOPs.

Fix #93048

Author: jakobbotsch
Assignees: -
Labels:

area-CodeGen-coreclr

Milestone: -

@jakobbotsch

jakobbotsch commented Nov 7, 2023

Copy link
Copy Markdown
Member Author

cc @dotnet/jit-contrib PTAL @kunalspathak

No diffs. Some TP improvements on linux-x64, not sure what's up with that -- I guess Clang changed codegen strategy in some way.

@kunalspathak kunalspathak left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

LGTM

@jakobbotsch
jakobbotsch merged commit 85d3773 into dotnet:main Nov 7, 2023
@jakobbotsch
jakobbotsch deleted the remove-dead-code branch November 7, 2023 16:14
@ghost ghost locked as resolved and limited conversation to collaborators Dec 7, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

area-CodeGen-coreclr CLR JIT compiler in src/coreclr/src/jit and related components such as SuperPMI

Projects

None yet

Development

Successfully merging this pull request may close these issues.

DEREF_OF_NULL in /src/coreclr/jit/lsrabuild.cpp

2 participants