[llvm] [SandboxIR] Implement UndefValue (PR #107628)
via llvm-commits
llvm-commits at lists.llvm.org
Fri Sep 6 11:51:46 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
----------------
vporpo wrote:
Hmm what do yo mean? This just checks that a Poison is also an Undef.
https://github.com/llvm/llvm-project/pull/107628
More information about the llvm-commits
mailing list