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

Shilei Tian via llvm-commits llvm-commits at lists.llvm.org
Tue Apr 15 10:31:37 PDT 2025


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

We can't apply this to all triples because some test cases are intended to be target-independent, and they include `alloca` instructions across all address spaces.

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


More information about the llvm-commits mailing list