================
@@ -2064,6 +2064,9 @@ llvm::Value *CodeGenFunction::EmitToMemory(llvm::Value 
*Value, QualType Ty) {
 
   if (Ty->isExtVectorBoolType()) {
----------------
spall wrote:

My intention was to replace calls to 'isExtVectorBoolType' and 
'isPackedVectorBoolType' anywhere we want an hlsl boolean vector to follow the 
normal handling path for vectors; Hopefully reviews will verify I got this 
right.
Here we can't follow the normal vector path because it returns the value 
unchanged, and we need to convert a vec of i1s to a vec of i32s, which is why 
we zero extend here. The normally "boolean vector packing" does something 
different.

https://github.com/llvm/llvm-project/pull/123977
_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to