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

Invalid CSE for arrays in constants #2021

Closed
athas opened this issue Sep 18, 2023 · 0 comments
Closed

Invalid CSE for arrays in constants #2021

athas opened this issue Sep 18, 2023 · 0 comments

Comments

@athas
Copy link
Member

athas commented Sep 18, 2023

def arr = replicate 10 true
entry main = zip arr arr

Causes compiler crash. Probably we should just not CSE arrays in constants - it's unlikely to be useful very often, and the aliasing implications are subtle.

@athas athas closed this as completed in af76f4a Sep 18, 2023
CKuke pushed a commit to CKuke/futhark-seq that referenced this issue Nov 8, 2023
This bug turned out to manifest itself in many locations, but all
related to copy-removal in top level statements.

It is somewhat annoying that we have to be so careful about aliasing,
since I expect few real programs actually use in-place updates all
that much.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant