[Mlir-commits] [mlir] [mlir][Tensor][Func] Rewrite single-dim Tensor return to Scalar (PR #194404)

Mehdi Amini llvmlistbot at llvm.org
Thu May 28 14:58:39 PDT 2026


joker-eph wrote:

> Since the limitations come from EmitC, it felt natural to move the logic there.

If this is a tensor->tensor dialect pass, I'm not sure I agree. 
This is very speculative as a claim here. I could just as easily see this positioned as a "normalization" of the calling convention (returning a scalar seems cheaper than a tensor). 

https://github.com/llvm/llvm-project/pull/194404


More information about the Mlir-commits mailing list