[llvm-branch-commits] [clang] [HLSL][Matrix] Add Matrix splat support for booleans (PR #175809)

Joshua Batista via llvm-branch-commits llvm-branch-commits at lists.llvm.org
Tue Jan 13 16:54:13 PST 2026


================
@@ -2218,6 +2218,10 @@ llvm::Value *CodeGenFunction::EmitToMemory(llvm::Value *Value, QualType Ty) {
 
   if (Ty->isExtVectorBoolType() || Ty->isConstantMatrixBoolType()) {
     llvm::Type *StoreTy = convertTypeForLoadStore(Ty, Value->getType());
+
+    if (Value->getType() == StoreTy)
----------------
bob80905 wrote:

Yeah, that's sound logic. I would think this is a sound change in the general case then 👍

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


More information about the llvm-branch-commits mailing list