Skip to content

Conversation

@marek-safar
Copy link
Contributor

Fixes #2888

@marek-safar marek-safar requested a review from vitek-karas July 21, 2022 08:23
@marek-safar
Copy link
Contributor Author

@vitek-karas ping

"call System.Void Mono.Linker.Tests.Cases.UnreachableBlock.ComplexConditionsOptimized/TestSwitch::Reached()",
"br.s il_a",
})]
public static void TestOffset ()
Copy link
Member

Choose a reason for hiding this comment

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

Would it make sense to also add tests to the ComplexConditions - basically the debug version of these tests - since the IL patterns will be somewhat different in that case.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I did only the most straightforward pattern. There are more including pattern matching, nullable, etc that I point I think we need to invest in so will just leave that for next time.

@marek-safar marek-safar merged commit 73e08af into dotnet:main Nov 9, 2022
@marek-safar marek-safar deleted the switchopt branch November 9, 2022 13:49
tlakollo pushed a commit to tlakollo/linker that referenced this pull request Dec 20, 2022
tlakollo pushed a commit to tlakollo/runtime that referenced this pull request Dec 22, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Support removal of unreachable switch blocks

2 participants