-
Notifications
You must be signed in to change notification settings - Fork 13.5k
Compilation Aborted (core dumped) #65155
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
Comments
@llvm/issue-subscribers-openmp |
@llvm/issue-subscribers-backend-amdgpu |
Hi! This issue may be a good introductory issue for people new to working on LLVM. If you would like to work on this issue, your first steps are:
For more instructions on how to submit a patch to LLVM, see our documentation. If you have any further questions about this issue, don't hesitate to ask via a comment on this Github issue. @llvm/issue-subscribers-good-first-issue |
The code is semi-valid, we should not crash. The reason is that we replace the AS(0) global with one in AS(5), due to the data layout. This is a good beginner issue as one "simply" needs to add a AS cast before the RAUW operation in processGlobal (globalsopt pass). That all said, we need to find out when the AS(0) global was added in the first place and fix that as well. Godbold: https://godbolt.org/z/5e4K5cGcE |
One does not simply introduce new addrspacecasts without target knowledge |
Fix crash on RAUW due to locals and globals having different address spaces. This is the intent of the original code, but it assumes the alloca address space is 0. This patch fixes the code to check that the global's address space matches `DL.getAllocaAddrSpace()` instead. Fixes #65155
Getting an Aborted (core dumped) from compiling with clang. You can reproduce the core dump with the attached reduced.ll file using
opt -p globalopt reduced.ll
reduced.ll:
The text was updated successfully, but these errors were encountered: