================
@@ -59,6 +60,8 @@ static TargetExtType *getTargetExtType(const GlobalVariable 
&GV) {
 }
 
 TargetExtType *isNamedBarrier(const GlobalVariable &GV) {
+  if (GV.getAddressSpace() != AMDGPUAS::EXECSYNC)
+    return nullptr;
----------------
arsenm wrote:

Test what happens if the type or address space is wrong? 

https://github.com/llvm/llvm-project/pull/195613
_______________________________________________
llvm-branch-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commits

Reply via email to