We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bc9f96a commit c6e23abCopy full SHA for c6e23ab
mlir/lib/Conversion/XeGPUToXeVM/XeGPUToXeVM.cpp
@@ -682,9 +682,8 @@ class LoadStoreMatrixToXeVMPattern : public OpConversionPattern<OpType> {
682
// Some transforms may leave unit dimension in the 2D vector, adaptors do
683
// not catch it for results.
684
if (auto vecType = dyn_cast<VectorType>(resType)) {
685
- auto nonUnitDims = llvm::count_if(vecType.getShape(),
686
- [](int64_t d) { return d != 1; });
687
- assert(nonUnitDims <= 1 &&
+ assert(llvm::count_if(vecType.getShape(),
+ [](int64_t d) { return d != 1; }) <= 1 &&
688
"Expected either 1D vector or nD with unit dimensions");
689
resType = VectorType::get({vecType.getNumElements()},
690
vecType.getElementType());
0 commit comments