This commit is contained in:
gingerBill
2023-01-18 15:41:49 +00:00
parent 6909e0d774
commit f41c91d36b

View File

@@ -509,6 +509,11 @@ gb_internal bool lb_is_matrix_simdable(Type *t) {
case TargetArch_arm64:
break;
}
if (type_align_of(t) < 16) {
// it's not aligned well enough to use the vector instructions
return false;
}
if (elem->kind == Type_Basic) {
switch (elem->Basic.kind) {