Skip to content

Commit 7f41d63

Browse files
committed
fix bug linalg
1 parent 3f5eec0 commit 7f41d63

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

mlir/lib/Dialect/Linalg/IR/LinalgOps.cpp

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1498,17 +1498,16 @@ static Operation *findPayloadOp(Block *body, bool initFirst = false) {
14981498

14991499
void printShortForm(OpAsmPrinter &p, Operation *payloadOp) {
15001500
SmallVector<StringRef> elidedAttrs;
1501-
std::string attrToElide;
15021501
p << " { " << payloadOp->getName().getStringRef();
15031502
for (const auto &attr : payloadOp->getAttrs()) {
15041503
if (auto fastAttr = dyn_cast<arith::FastMathFlagsAttr>(attr.getValue())) {
15051504
if (fastAttr.getValue() == arith::FastMathFlags::none) {
1506-
elidedAttrs.push_back(attr.getName().str());
1505+
elidedAttrs.push_back(attr.getName());
15071506
}
15081507
}
15091508
if (auto denormAttr = dyn_cast<arith::DenormalModeAttr>(attr.getValue())) {
15101509
if (denormAttr.getValue() == arith::DenormalMode::ieee) {
1511-
elidedAttrs.push_back(attr.getName().str());
1510+
elidedAttrs.push_back(attr.getName());
15121511
}
15131512
}
15141513
}

0 commit comments

Comments
 (0)