Commit 2137354
[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 #142973.
---------
Co-authored-by: Craig Topper <craig.topper@sifive.com>1 parent 20becf3 commit 2137354
File tree
2 files changed
+594
-4
lines changed- llvm
- include/llvm/CodeGen
- test/Analysis/CostModel/RISCV
2 files changed
+594
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2498 | 2498 | | |
2499 | 2499 | | |
2500 | 2500 | | |
2501 | | - | |
2502 | | - | |
2503 | | - | |
2504 | | - | |
| 2501 | + | |
| 2502 | + | |
| 2503 | + | |
| 2504 | + | |
| 2505 | + | |
| 2506 | + | |
| 2507 | + | |
| 2508 | + | |
| 2509 | + | |
| 2510 | + | |
2505 | 2511 | | |
| 2512 | + | |
2506 | 2513 | | |
2507 | 2514 | | |
2508 | 2515 | | |
| |||
0 commit comments