[Mlir-commits] [mlir] [MLGO][EmitC] Scalarize single-element tensor returns (PR #199686)
ioana ghiban
llvmlistbot at llvm.org
Wed Jun 3 01:56:05 PDT 2026
================
----------------
ioghiban wrote:
> What makes an "info" a candidate?
`getScalarizableFunctionInfoIfEligible(func)` has to return `ScalarizableFunctionInfo` for that `func`
> why "candidate" and not "scalarizationInfos"?
`ScalarizableFunctionInfo` is not stored for non-candidates (i.e. the function local info info scores the `func` as candidate)
> Presumably something might still reject the rewrite, right?
yes, the info available module-wide, checked for "candidates" only. if that test also passes, then the `func` is added to `rewriteOrder`.
https://github.com/llvm/llvm-project/pull/199686
More information about the Mlir-commits
mailing list