Understanding of TVM "produce" IR symbol

In this part (https://docs.tvm.ai/tutorials/optimize/opt_gemm.html#array-packing), we have two produces, one is produce C and another is produce packedB. During computation, will packedB be called before C, or two produces will be automatically merged?

That depends on a schedule. In that tutorial, packedB will be called before C.

Two produces (or more precisely, stages) never merge automatically. To merge or fuse two stages, you need to use compute_at or compute_inline.

1 Like