[PATCH] D105135: [Internalize] Preserve variables externally initialized.

Michael Liao via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Jun 29 10:46:12 PDT 2021


hliao added inline comments.


================
Comment at: clang/test/CodeGenCUDA/host-used-device-var.cu:20
 
-// DEV-NEG-NOT: @v1
-__device__ int v1;
----------------
BTW, as clang codegen tests, those checks should not rely on middle-end optimizations to work correctly.


================
Comment at: clang/test/CodeGenCUDA/unused-global-var.cu:20
 
-// NEGCHK-NOT: @v1
-__device__ int v1;
----------------
BTW, as clang codegen tests, those checks should not rely on middle-end optimizations to work correctly.




Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D105135



More information about the llvm-commits mailing list