Skip to content

Commit

Permalink
Avoid bufferizing the outputs to unrealized_conversion_cast in runtim…
Browse files Browse the repository at this point in the history
…_sequence args (Xilinx#856)
  • Loading branch information
erwei-xilinx authored Jan 13, 2025
1 parent 646b67b commit 2feb775
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mlir/lib/Util/Util.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1708,7 +1708,7 @@ struct BufferMemrefToFuncArgsPattern : public OpRewritePattern<func::FuncOp> {
SmallVector<Type, 6> memrefTypes;
llvm::SetVector<Value> memrefs;
for (auto &op : funcOp.getFunctionBody().getOps()) {
if (isa<CastOpInterface>(op))
if (isa<CastOpInterface, UnrealizedConversionCastOp>(op))
continue;
for (auto res : op.getResults()) {
MemRefType resType = dyn_cast<MemRefType>(res.getType());
Expand Down

0 comments on commit 2feb775

Please sign in to comment.