[PATCH] D98783: [CUDA][HIP] Remove unused addr space casts

Yaxun Liu via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Wed Mar 17 10:46:41 PDT 2021


yaxunl added a comment.

In D98783#2632153 <https://reviews.llvm.org/D98783#2632153>, @tra wrote:

> I do not see any hanging ASCs in the generated IR with clang at HEAD: https://godbolt.org/z/TE4Yhr
>
> What do I miss?

The unused casts are invisible since they are not used by any visible IR's. To see them, you need to dump the users of these global variables explicitly.


CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D98783/new/

https://reviews.llvm.org/D98783



More information about the cfe-commits mailing list