Introduce an explicit replaceOp call to enable the tracking of the producer LinalgOp.
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
| mlir/lib/Dialect/Linalg/IR/LinalgOps.cpp | ||
|---|---|---|
| 1649 | Why is the SmallVector necessary here? Can you not just do: rewriter.replaceOp(linalgOp, newOp->getResults()) | |
| mlir/lib/Dialect/Linalg/IR/LinalgOps.cpp | ||
|---|---|---|
| 1649 | One of the replacement values needs to be set to castBack (see next line). The castBack value is needed if the result has more uses than just castOp. | |
Why is the SmallVector necessary here? Can you not just do: rewriter.replaceOp(linalgOp, newOp->getResults())