Skip to content

Commit e5cd0c0

Browse files
committed
Remove redundant checks
Signed-off-by: hanhanW <hanhan0912@gmail.com>
1 parent c7dc7da commit e5cd0c0

3 files changed

Lines changed: 2 additions & 5 deletions

File tree

compiler/src/iree/compiler/Codegen/Interfaces/VectorizableOpInterface.cpp

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -326,9 +326,6 @@ struct ToLayoutOpVectorizationModel
326326
ArrayRef<bool> scalableDims,
327327
DictionaryAttr options) const {
328328
auto toLayoutOp = cast<IREE::VectorExt::ToLayoutOp>(op);
329-
if (!toLayoutOp.hasTensorSemantics()) {
330-
return failure();
331-
}
332329
OpBuilder::InsertionGuard g(rewriter);
333330
rewriter.setInsertionPoint(toLayoutOp);
334331
Location loc = toLayoutOp.getLoc();

third_party/llvm-project

Submodule llvm-project updated 2977 files

third_party/torch-mlir

Submodule torch-mlir updated 76 files

0 commit comments

Comments
 (0)