File tree Expand file tree Collapse file tree 1 file changed +1
-11
lines changed
mlir/lib/Dialect/Vector/Transforms Expand file tree Collapse file tree 1 file changed +1
-11
lines changed Original file line number Diff line number Diff line change @@ -1295,17 +1295,7 @@ class DropInnerMostUnitDimsTransferRead
1295
1295
1296
1296
// Make sure that the indixes to be dropped are equal 0.
1297
1297
// TODO: Deal with cases when the indices are not 0.
1298
- auto isZeroIdx = [](Value idx) {
1299
- Attribute attr;
1300
- APInt value;
1301
- if (!matchPattern (idx, m_Constant (&attr)))
1302
- return false ;
1303
- if (matchPattern (attr, m_ConstantInt (&value)))
1304
- if (!value.isZero ())
1305
- return false ;
1306
- return true ;
1307
- };
1308
- if (!llvm::all_of (readOp.getIndices ().take_back (dimsToDrop), isZeroIdx))
1298
+ if (!llvm::all_of (readOp.getIndices ().take_back (dimsToDrop), isZeroIndex))
1309
1299
return failure ();
1310
1300
1311
1301
auto resultTargetVecType =
You can’t perform that action at this time.
0 commit comments