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
[mlir] gpu-to-llvm Pass crashed with error message "Assertion failed: (!replacements.count(op) && "operation was already replaced")" #59182
Comments
|
@llvm/issue-subscribers-mlir |
|
@ThomasRaoux may know who can look into this? |
|
This is not gpu specific, looks like a bug in the lowering of |
|
still reproducible at commit e09c76f |
|
Hi @pifon2a, I want to kindly bring this to your attention in case you forgot to look at this issue. |
|
I did not even see it. Thanks for pinging me. I ll try to fix it on Friday or Monday. |
|
Here is the fix for the main issue here https://reviews.llvm.org/D145901, but it won't fix the lowering completely, because cmpxchg does not accept floats. @ftynse, is there any workaround to make it work? I found this related discussion https://lists.llvm.org/pipermail/llvm-dev/2020-August/144314.html |
|
Can't the lowering go to llvm.atomic_rmw? |
MLIR built at commit 12ebfca
Reproduced with:
mlir-opt --gpu-to-llvm temp.mlirtemp.mlir:
trace:
The text was updated successfully, but these errors were encountered: