[llvm] [SandboxIR] Implement UndefValue (PR #107628)

Sriraman Tallam via llvm-commits llvm-commits at lists.llvm.org
Mon Sep 9 16:49:36 PDT 2024


================
@@ -642,6 +642,7 @@ define void @foo() {
   // Check classof() and creation.
   auto *Poison = cast<sandboxir::PoisonValue>(I0->getOperand(0));
   EXPECT_EQ(Poison->getType(), Int32Ty);
+  EXPECT_TRUE(isa<sandboxir::UndefValue>(Poison)); // Poison is Undef
----------------
tmsri wrote:

LGTM, Poison value is an undef.

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


More information about the llvm-commits mailing list