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

Split views bypass typechecker and allow incorrect loop unrolling #407

Open
Mark1626 opened this issue Jan 12, 2024 · 0 comments
Open

Split views bypass typechecker and allow incorrect loop unrolling #407

Mark1626 opened this issue Jan 12, 2024 · 0 comments

Comments

@Mark1626
Copy link
Collaborator

The following can be compiled

let C: float[32 bank 4];
split split_C = C[by 2];
for (let i=0..2) unroll 2 {
    for (let j=0..16) unroll 2 {
        split_C[i][j];
    }
}

---

for (let i=0..2) unroll 2 {
    for (let j=0..16) unroll 4 {
        split_C[i][j];
    }
}

---

for (let i=0..2) unroll 2 {
    for (let j=0..16) unroll 8 {
        split_C[i][j];
    }
}

---

for (let i=0..2) unroll 2 {
    for (let j=0..16) unroll 16 {
        split_C[i][j];
    }
}

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

No branches or pull requests

1 participant