Skip to content

Commit 2feb775

Browse files
authored
Avoid bufferizing the outputs to unrealized_conversion_cast in runtim_sequence args (Xilinx#856)
1 parent 646b67b commit 2feb775

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mlir/lib/Util/Util.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1708,7 +1708,7 @@ struct BufferMemrefToFuncArgsPattern : public OpRewritePattern<func::FuncOp> {
17081708
SmallVector<Type, 6> memrefTypes;
17091709
llvm::SetVector<Value> memrefs;
17101710
for (auto &op : funcOp.getFunctionBody().getOps()) {
1711-
if (isa<CastOpInterface>(op))
1711+
if (isa<CastOpInterface, UnrealizedConversionCastOp>(op))
17121712
continue;
17131713
for (auto res : op.getResults()) {
17141714
MemRefType resType = dyn_cast<MemRefType>(res.getType());

0 commit comments

Comments
 (0)