Skip to content

Add support for removing dead branches in mono interpreter #34750

Description

@BrzVlad

The mono interpreter currently does constant folding, but conditional branches are never optimized away. Optimizing them is particularly useful in various bcl places, like Span, where there are many checks with results known at jit compile time. (ex Sizeof<T> == ct, typeof(T) == ct, feature.IsSupported etc)

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions