gingerBill 2 年之前
父节点
当前提交
7df1cc075c
共有 1 个文件被更改,包括 3 次插入0 次删除
  1. 3 0
      src/llvm_backend_expr.cpp

+ 3 - 0
src/llvm_backend_expr.cpp

@@ -514,6 +514,9 @@ gb_internal bool lb_is_matrix_simdable(Type *t) {
 		// it's not aligned well enough to use the vector instructions
 		return false;
 	}
+	if ((mt->Matrix.row_count & 1) ^ (mt->Matrix.column_count & 1)) {
+		return false;
+	}
 	
 	if (elem->kind == Type_Basic) {
 		switch (elem->Basic.kind) {