Skip to content

Commit

Permalink
Fix Coverity issues
Browse files Browse the repository at this point in the history
  • Loading branch information
nbpatel authored and silee2 committed Nov 13, 2023
1 parent db7c272 commit f05029e
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 6 deletions.
4 changes: 0 additions & 4 deletions lib/Dialect/XeGPU/IR/XeGPUOps.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -990,10 +990,6 @@ mlir::LogicalResult DpasOp::verify() {
"lhs and rhs rank does not match for dpas op, or their rank is not 3.");
}

if (lhsRank < 3) {
return emitOpError("dpas op requires 3d vector. Rank is not 3");
}

return mlir::success();
}

Expand Down
2 changes: 0 additions & 2 deletions lib/Dialect/XeTile/IR/XeTileOps.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -341,8 +341,6 @@ void LoadTileOp::print(mlir::OpAsmPrinter &printer) {
printer << " { ";
if ((*this)->getAttrs().size()) {
if (getTransposeAttr()) {
if (printSep)
printer << ", ";
printer << "transpose = ";
getTransposeAttr().print(printer);
printSep = true;
Expand Down
1 change: 1 addition & 0 deletions lib/Dialect/XeTile/Transforms/XeTileTiling.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -155,6 +155,7 @@ struct SCFForOpPattern : public XeTileConversion<mlir::scf::ForOp> {
adaptor.getStep(), adaptor.getInitArgs());
mlir::Block *block = op.getBody();
mlir::Block *newBlock = newOp.getBody();
newBlock->clear();
rewriter.mergeBlocks(block, newBlock, newBlock->getArguments());
rewriter.replaceOp(op, newOp);
return mlir::success();
Expand Down

0 comments on commit f05029e

Please sign in to comment.