Skip to content

Commit 84b8e76

Browse files
committed
replace undef with poison
1 parent 0ae224f commit 84b8e76

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

mlir/lib/Dialect/LLVMIR/IR/NVVMDialect.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1685,9 +1685,9 @@ NVVM::IIDArgsWithTypes CpAsyncBulkTensorReduceOp::getIIDAndArgsWithTypes(
16851685

16861686
mlir::Value cacheHint = thisOp.getL2CacheHint();
16871687
const bool hasCacheHint = static_cast<bool>(cacheHint);
1688-
llvm::Value *i64Undef =
1689-
llvm::UndefValue::get(llvm::IntegerType::get(ctx, 64));
1690-
args.push_back(hasCacheHint ? mt.lookupValue(cacheHint) : i64Undef);
1688+
llvm::Value *i64Poison =
1689+
llvm::PoisonValue::get(llvm::IntegerType::get(ctx, 64));
1690+
args.push_back(hasCacheHint ? mt.lookupValue(cacheHint) : i64Poison);
16911691
args.push_back(builder.getInt1(hasCacheHint));
16921692

16931693
llvm::Intrinsic::ID iid;

0 commit comments

Comments
 (0)