[Mlir-commits] [mlir] [MLGO][EmitC] Scalarize single-element tensor returns (PR #199686)
ioana ghiban
llvmlistbot at llvm.org
Wed Jun 10 02:24:17 PDT 2026
================
----------------
ioghiban wrote:
A direct `func.call` user outside any enclosing `func.func` may still have SSA uses, but there is no caller function boundary to rewrite, only the call op result. Therefore, the callsite can still be updated safely: the call result type is rewritten and its existing tensor-typed uses can be reboxed with `tensor.from_elements`, if needed. Such a user is still eligible scalarization, but it terminates the DFS because there is no enclosing caller function to analyze transitively.
https://github.com/llvm/llvm-project/pull/199686
More information about the Mlir-commits
mailing list