User Details
- User Since
- Nov 24 2020, 11:41 PM (131 w, 1 d)
Feb 13 2023
@yaxunl Could you please commit this change on my behalf? I don't have a write access to the trunk.
Thank you
Feb 7 2023
Aug 1 2022
Retry build.
Jul 27 2022
Jul 14 2022
Jan 18 2022
@nikic thanks.
Removed amdgpu-asan-noprintf.cu and added amdgpu-asan-printf.cu testcase.
@nikic thanks a lot for accepting. Could you please commit this patch on my behalf? I don't have a commit access to llvm. thanks
Jan 17 2022
Address review comments. thanks
@nikic Thanks a lot for the detailed description to reduce the test-case, it greatly helped me.
Updated the patch with test-cases.
Hi @nikic
https://gist.github.com/pvellien/e4f519d17b25adf10fdd5978ee0b1de9
After trying a lot, this is minimal IR i can able to find. It is reduction from 84k lines to 617 lines.
Please compile with Opt with O3.
Jan 13 2022
hi @nikic I tired both bugpoint and llvm-reduce both of them, failed to reduce the issue. It would be very much helpful to know how to proceed further. I'm new to the llvm middle-end, I could really use some help here.
If it will be helpful I will share the complete IR module which fails at assert.
@nikic generating a small test-case is really hard, since it was triggering due to small peephole under very specific constraints. what would you advise here?
Jan 12 2022
Jan 11 2022
thanks for your reply @nikic
I'm trying to reduce the test-case to a minimal one. It may take some time. I will share as soon as I have it.
If I have to relax the assert, can I check whether the constant expr is a compare instead of true and false const?
Or If I have to use target dependent constant folding, how to do that?
thanks for your reply @nikic
I'm trying to reduce the test-case to a minimal one. It may take some time. I will share as soon as I have it.
If I have to relax the assert, can I check whether the constant expr is a compare instead of true and false const?
Or If I have to use target dependent constant folding, how to do that?
Hi @nikic This patch triggers an assertion in simplifycfg.cpp pass.
https://reviews.llvm.org/source/llvm-github/browse/main/llvm/lib/Transforms/Utils/SimplifyCFG.cpp$5800 this assertion is failing because that CaseConst returned is neither a true or false constant but a compare constant expression.
In my case, the instruction that triggers this assertion is
Jan 9 2022
@lebedev.ri updated with test-cases.
Dec 24 2021
@yaxunl It would be very much helpful to know how to write test coverage for this particular patch? thanks
Dec 23 2021
The testcases related to this patch are already added via this patch https://reviews.llvm.org/D112820.
Nov 10 2021
Thanks for accepting. I don't have commit access to llvm trunk yet. Could you please commit this patch? thanks.
Added a check in amdgpu-asan.cu file
Nov 2 2021
Addressed comments.
rebased
Addressed review comments.
Oct 29 2021
Sep 27 2021
Rebase on top.
Sep 22 2021
Hi, The failures in the debian builds are not related to this patch changes. I don't have a commit access to llvm trunk, could any of you please land this patch on my behalf. Thanks a lot for your time.
Sep 21 2021
@foad thanks.
Added test.
Sep 20 2021
Hi @yaxunl It will helpful to know what kind of test is expected to test the linkage type of generated init/fini kernels. The related test-cases for init/fini kernels are added in this patch - https://reviews.llvm.org/D105682
Feb 25 2021
Feb 22 2021
Yes
The const ObjectFile & symbolize* does not have the ability to open magic auxiliary files. This is not clear from the API.
This ^ is a limitation of these newly proposed ObjectFile APIs? So they won't be entirely compatible with the existing string-based APIs? So it would be difficult/not possible to refactor the existing code to use these APIs?
I think we can pass the file with debuginfo as an additional parameter as suggested by @MaskRay regarding refactoring all the use-cases within llvm to new APIs I'm not sure how complicated it would be in tools such as symbolizer, objdump etc
Feb 18 2021
Feb 16 2021
Feb 7 2021
ping
Feb 3 2021
Added FIXME
Jan 27 2021
Refactor code
Jan 25 2021
Jan 22 2021
Dec 24 2020
This change is wrong, the different patch is landed in llvm to handle global address space access in gfx60x for HSA Os. So closing it.
Fixed a small typo in comments. Nothing else is changed from prior diff.
Included the suggestions given by tony.
Dec 23 2020
If this is fine, place land. I don't have commit access yet.
added a blank line in amdgpuusage.rst file.
Updated the AMDGPUUsage doc. Also I don't have commit access, please commit this patch on my behalf.
Thanks a lot your time.
Dec 22 2020
Updated the code according to scott's suggestion. And I tried to compile sample program with all possible combinations of processors and ABIs( amdhsa, mesa3d, amdpal), it seems like the backend supports all the ABIs for all processors. So Instead of adding a separate column, (since values of processors will be the same) I added a text pharse above the processor table which documents. Is it right thing to do so?
Dec 21 2020
Dec 18 2020
Dec 16 2020
Comments inline
Dec 11 2020
Dec 10 2020
Dec 8 2020
Dec 7 2020
Removed error reporting based on string comparison. Updated the memory legalizer tests to include amdhsa for gfx60x
Dec 2 2020
fixed a typo in comments.
Comments inline
Nov 27 2020
Updated with stanislav comments