[llvm] 73e23f8 - [AMDGPU] Change placeholder from `undef` to `poison` (#130858)

via llvm-commits llvm-commits at lists.llvm.org
Wed Mar 12 05:53:30 PDT 2025


Author: Pedro Lobo
Date: 2025-03-12T12:53:27Z
New Revision: 73e23f899f2a2e582c6d905a94d0a22581f011eb

URL: https://github.com/llvm/llvm-project/commit/73e23f899f2a2e582c6d905a94d0a22581f011eb
DIFF: https://github.com/llvm/llvm-project/commit/73e23f899f2a2e582c6d905a94d0a22581f011eb.diff

LOG: [AMDGPU] Change placeholder from `undef` to `poison` (#130858)

Replace `undef` debug info with `poison`.

Added: 
    

Modified: 
    llvm/lib/Target/AMDGPU/AMDGPULowerBufferFatPointers.cpp

Removed: 
    


################################################################################
diff  --git a/llvm/lib/Target/AMDGPU/AMDGPULowerBufferFatPointers.cpp b/llvm/lib/Target/AMDGPU/AMDGPULowerBufferFatPointers.cpp
index 608b43b59eed3..5dd1fe14e5626 100644
--- a/llvm/lib/Target/AMDGPU/AMDGPULowerBufferFatPointers.cpp
+++ b/llvm/lib/Target/AMDGPU/AMDGPULowerBufferFatPointers.cpp
@@ -1620,7 +1620,7 @@ void SplitPtrStructs::killAndReplaceSplitInstructions(
         Dbg->setExpression(*RsrcExpr);
         Dbg->replaceVariableLocationOp(I, Rsrc);
       } else {
-        Dbg->replaceVariableLocationOp(I, UndefValue::get(I->getType()));
+        Dbg->replaceVariableLocationOp(I, PoisonValue::get(I->getType()));
       }
     }
 


        


More information about the llvm-commits mailing list