-
Notifications
You must be signed in to change notification settings - Fork 4.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Extract shared IL pattern analysis to a class #103701
Conversation
This fixes the problem discussed at dotnet#102248 (comment). Now we call into the same code from both substitutions and scanner.
SmokeTests not expected to be green without #103696 but it's such a corner case that it shouldn't matter elsewhere. |
/azp run runtime-nativeaot-outerloop |
Azure Pipelines successfully started running 1 pipeline(s). |
/azp run runtime-nativeaot-outerloop |
Azure Pipelines successfully started running 1 pipeline(s). |
src/tests/nativeaot/SmokeTests/TrimmingBehaviors/DeadCodeElimination.cs
Outdated
Show resolved
Hide resolved
/azp run runtime-nativeaot-outerloop |
Azure Pipelines successfully started running 1 pipeline(s). |
@dotnet/ilc-contrib could someone have a look please? This is a refactor to allow more code sharing and a building block for #103883 (that currently has this PR inlined into it) that brings up to 7% size savings for scenarios where this kicks in really well. |
@sbomer Can you take a look? |
src/coreclr/tools/aot/ILCompiler.Compiler/IL/TypeEqualityPatternAnalyzer.cs
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM (aside from Jan's comment) as someone looking at this area for the first time.
This fixes the problem discussed at #102248 (comment). Now we call into the same code from both substitutions and scanner.
Cc @dotnet/ilc-contrib