-
Notifications
You must be signed in to change notification settings - Fork 145
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
Regent: miscompilation with LLVM 11 #1385
Comments
Bisect appears to show the first failing version is LLVM 7 (i.e., only LLVM 6 works). Next step is probably to try to reduce the reproducer, if we can, to isolate the miscompilation that is occurring. |
Here's a reproducer for this issue: https://gist.github.com/elliottslaughter/22feeeb495cc8fd429c83b77c957b37a It is slightly minimized relative to what @seemamirch gave me; most notably, I was able to reduce the C array in the reproducer from The code contains several versions of An example failure looks like:
Optionally, you can run with Running latest |
I minimized the reproducer to pure Terra below, so I'll move this over to the Terra issue tracker now: https://gist.github.com/elliottslaughter/c8bc2252c92639f8d3618b9bf3d33fb2 |
I have confirmed that all of my reproducers are now fixed with the latest Terra master terralang/terra@a3a6799. Assigning back to @seemamirch to confirm the original code is fixed with LLVM 11+. |
It works - I tested it with LLVM 13.0.0 |
@seemamirch sent me a reproducer code that appears to miscompile with LLVM 11. I am currently requesting permission to post the reproducer, and I will update this issue once I have it.
A failed compilation looks like:
Failures are non-deterministic and happen about 90% of the time. (Or more, it's hard to tell. But it's not 100% because I do sometimes get the test to pass.)
If I build Terra with LLVM 6 then the test runs successfully 100% of the time:
In initial discussions we thought this might be related to the Legion and/or Terra versions, but the only variable I have found to matter is the LLVM version. Legion
master
(b94ea70) and Terramaster
(687166f57447c17434b303709327be5d2b78e5c4) with LLVM 11 exhibit this problem, the same with LLVM 6 do not.I suppose next I'll try to bisect on LLVM versions to determine what the first problematic version is.
Bisect progress:
The text was updated successfully, but these errors were encountered: