-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
LLVM IR generation bug when adding metadata for excinfo
-related store instruction
#9550
Comments
Yeah, in Can push a PR soon. |
could be related to #9186, where I observed this |
@dlee992, I wasn't aware of the Lines 707 to 715 in 4318ee4
Can you try that? |
The LLVM IR is from post-optimization and LLVM is allowed to move/remove metadata as it wish. Perhaps, we should stop using metadata but instead detect the store going to So, in |
@sklam, should we go with adding the metadata for the missing case? Or just try to fix the |
@guilhermeleobas, yes, I tried to add more metadata in #9551 . And my internal test case's performance is better with that. ex: w/o this PR, calls of @sklam, yes, changing the detection way in llvmlite side is also a solution. |
I noticed in a certain case, numba will emit LLVM IR like this:
I think this branch is used for storing
excinfo
and return. But thestore
instr doesn't have the metadata ofnumba_exception_output
, which makes theref_prune
pass in llvmlite can't remove some ref pairs.The source code in llvmlite:
Willing to provide a python test case later. Trying to find a fix meanwhile.
The text was updated successfully, but these errors were encountered: