[llvm] [TTI] Check type legalization of both src and result for fpto{u|s}i.sat. (PR #147657)

Elvis Wang via llvm-commits llvm-commits at lists.llvm.org
Wed Jul 9 23:26:35 PDT 2025


ElvisWang123 wrote:


> Perhaps (in a followup) we could say that custom lowering for fptosi.sat isn't meaningful enough (only based on RetTy) to be useful and should always use the fallback costs (line 2758-2783). The target can override it based on the extra information it knows.

Sorry I am not sure what is custom lowering. Is that the expansion cost (Line 2533 - 2551)? https://github.com/llvm/llvm-project/pull/147657/files#diff-3bd7f3712428683f95ff47b2f16b54ab32f478d036deb2f6463a5560bc97712bR2533-R2551


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


More information about the llvm-commits mailing list