-
Notifications
You must be signed in to change notification settings - Fork 2.3k
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
[IR] Fix continue statement in struct for and add a related test #3282
Conversation
❌ Deploy Preview for jovial-fermat-aa59dc failed. 🔨 Explore the source changes: dde1089 🔍 Inspect the deploy log: https://app.netlify.com/sites/jovial-fermat-aa59dc/deploys/6185211e6650270008f6f515 |
/format |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let's keep the original behavior for the Metal backend -- Metal has to translate parallelized continue
to return
.
/format |
/format |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
Co-authored-by: Ye Kuang <[email protected]>
Co-authored-by: Ye Kuang <[email protected]>
Co-authored-by: Ye Kuang <[email protected]>
fixes #3272
It seems that only a few backends (including llvm, metal) support struct-for, and I only fix this problem for llvm CUDA and cpu backends.
Not sure whether this works for metal.