[llvm] AMDGPU: Rename variable from undef to poison (PR #130460)

Matt Arsenault via llvm-commits llvm-commits at lists.llvm.org
Sat Mar 8 19:46:02 PST 2025


https://github.com/arsenm created https://github.com/llvm/llvm-project/pull/130460

None

>From 0414babd98a6113e7ee502e8c456af7d56164af1 Mon Sep 17 00:00:00 2001
From: Matt Arsenault <Matthew.Arsenault at amd.com>
Date: Sun, 9 Mar 2025 10:05:29 +0700
Subject: [PATCH] AMDGPU: Rename variable from undef to poison

---
 llvm/lib/Target/AMDGPU/SIAnnotateControlFlow.cpp | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/llvm/lib/Target/AMDGPU/SIAnnotateControlFlow.cpp b/llvm/lib/Target/AMDGPU/SIAnnotateControlFlow.cpp
index df0c2080e0795..3be7e5a16c825 100644
--- a/llvm/lib/Target/AMDGPU/SIAnnotateControlFlow.cpp
+++ b/llvm/lib/Target/AMDGPU/SIAnnotateControlFlow.cpp
@@ -48,7 +48,7 @@ class SIAnnotateControlFlow {
 
   ConstantInt *BoolTrue;
   ConstantInt *BoolFalse;
-  UndefValue *BoolUndef;
+  PoisonValue *BoolPoison;
   Constant *IntMaskZero;
 
   Function *If = nullptr;
@@ -120,7 +120,7 @@ void SIAnnotateControlFlow::initialize(const GCNSubtarget &ST) {
 
   BoolTrue = ConstantInt::getTrue(Context);
   BoolFalse = ConstantInt::getFalse(Context);
-  BoolUndef = PoisonValue::get(Boolean);
+  BoolPoison = PoisonValue::get(Boolean);
   IntMaskZero = ConstantInt::get(IntMask, 0);
 }
 



More information about the llvm-commits mailing list