Skip to content

Commit

Permalink
[mlir][GPU] Fix incorrect API usage in RewritePatterns
Browse files Browse the repository at this point in the history
Incorrect API usage was detected by D144552.

Differential Revision: https://reviews.llvm.org/D144637
  • Loading branch information
matthias-springer committed Feb 23, 2023
1 parent 2fc5a51 commit c080c1f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mlir/lib/Dialect/GPU/IR/GPUDialect.cpp
Expand Up @@ -1333,7 +1333,7 @@ struct EraseRedundantGpuWaitOpPairs : public OpRewritePattern<WaitOp> {
continue;
validOperands.push_back(operand);
}
op->setOperands(validOperands);
rewriter.updateRootInPlace(op, [&]() { op->setOperands(validOperands); });
return success();
}
};
Expand Down

0 comments on commit c080c1f

Please sign in to comment.