[llvm] [AMDGPU][Verifier] Check address space of `alloca` instruction (PR #135820)

Johannes Doerfert via llvm-commits llvm-commits at lists.llvm.org
Thu Apr 24 20:15:17 PDT 2025


================
@@ -4392,6 +4392,12 @@ void Verifier::visitAllocaInst(AllocaInst &AI) {
     verifySwiftErrorValue(&AI);
   }
 
+  if (TT.isAMDGPU()) {
----------------
jdoerfert wrote:

Why does this check the triple? This should check the default alloca AS in the DL. Same for globals. Basically everything that has a dedicated AS in the DL should only be created in that AS.

https://github.com/llvm/llvm-project/pull/135820


More information about the llvm-commits mailing list