Skip to content
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

Vector: Remove now unnecessary uses of undefined #552

Merged
merged 1 commit into from
Sep 20, 2024

Commits on Sep 20, 2024

  1. Vector: Remove now unnecessary uses of undefined

    Sail 0.18 contains the vector_init primitive, to make initialising
    vectors with defined values easier. We can use this in some places
    where the vector code was creating an uninitalised vector, only to
    then initialize it later.
    
    Second, we can remove some uses of undefined by refactoring slightly
    how init_masked_result is used, which has the added benefit of making
    mask immutable.
    
    Some additional constraints need to be added to use the vector_init
    primitive.
    
    Sail's pattern completeness checker is now smarter than before, so
    some wildcard cases can also be safely removed.
    Alasdair committed Sep 20, 2024
    Configuration menu
    Copy the full SHA
    f139c0d View commit details
    Browse the repository at this point in the history