[all-commits] [llvm/llvm-project] 213735: [TTI] Check type legalization of both src and resu...
Elvis Wang via All-commits
all-commits at lists.llvm.org
Wed Jul 9 23:44:49 PDT 2025
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 213735487ea0c682a3e8c3d5a78a034e50fd5a0a
https://github.com/llvm/llvm-project/commit/213735487ea0c682a3e8c3d5a78a034e50fd5a0a
Author: Elvis Wang <elvis.wang at sifive.com>
Date: 2025-07-10 (Thu, 10 Jul 2025)
Changed paths:
M llvm/include/llvm/CodeGen/BasicTTIImpl.h
A llvm/test/Analysis/CostModel/RISCV/cast-sat.ll
Log Message:
-----------
[TTI] Check type legalization of both src and result for fpto{u|s}i.sat. (#147657)
For the cast instructions such ass `fptoui.sat`, `fptosi.sat`, need to
check
both type of the source and the result type can be lowering legally. If
one of them is invalid, return invalid cost.
--
Fixes https://github.com/llvm/llvm-project/issues/142973.
---------
Co-authored-by: Craig Topper <craig.topper at sifive.com>
To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications
More information about the All-commits
mailing list