Adding noundef attribute has been enabled by default in clang. This is causing execution issue on amdgpu, when kernel has uninitialized variables passed as function arguments to cuda cross-lane APIs. This patch skips adding noundef attribute to function arguments and return values for HIP device functions.
Diff Detail
Diff Detail
Event Timeline
clang/lib/CodeGen/CGCall.cpp | ||
---|---|---|
2309 | Shouldn't be limited to HIP. All languages with convergent operations |
Shouldn't be limited to HIP. All languages with convergent operations