[clang] [CUDA][HIP] Exclude external variables from constant promotion. (PR #73549)
Matt Arsenault via cfe-commits
cfe-commits at lists.llvm.org
Tue Feb 6 04:33:47 PST 2024
================
@@ -104,3 +106,14 @@ void fun() {
(void) b<double>;
(void) var_host_only;
}
+
+extern __global__ void external_func();
+extern void* const external_dep[] = {
----------------
arsenm wrote:
Sounds broken that the behavior would differ between array and non-array ?
https://github.com/llvm/llvm-project/pull/73549
More information about the cfe-commits
mailing list