Skip to content

Optimize redundant HasValue check in patterns #60413

@Youssef1313

Description

@Youssef1313

Given the behavior of M1 versus M2 in this test (NoRedundantNullCheckForNullableConstantPattern_04), perhaps we should file an item separately for optimizing out unnecessary 'HasValue' checks in patterns.

Originally posted by @RikkiGibson in #60405 (comment)

Metadata

Metadata

Assignees

No one assigned

    Labels

    Area-CompilersCode Gen QualityRoom for improvement in the quality of the compiler's generated code

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions