Commit 8b69549
committed
[X86][FP16] Promote FP16->[U]INT to FP16->FP32->[U]INT
This is to avoid f16->i64 being lowered to `__fixhfdi/__fixunshfdi` on 32-bits since neither libgcc nor compiler-rt provide them. https://godbolt.org/z/cjWEsea5v
It also helps to improve the performance by promoting the vector type.
Reviewed By: LuoYuanke
Differential Revision: https://reviews.llvm.org/D1318281 parent cf1521e commit 8b69549
File tree
4 files changed
+246
-226
lines changed- llvm
- lib/Target/X86
- test/CodeGen/X86
4 files changed
+246
-226
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
32734 | 32734 | | |
32735 | 32735 | | |
32736 | 32736 | | |
| 32737 | + | |
32737 | 32738 | | |
32738 | 32739 | | |
| 32740 | + | |
| 32741 | + | |
| 32742 | + | |
| 32743 | + | |
| 32744 | + | |
| 32745 | + | |
| 32746 | + | |
| 32747 | + | |
| 32748 | + | |
| 32749 | + | |
| 32750 | + | |
| 32751 | + | |
| 32752 | + | |
| 32753 | + | |
| 32754 | + | |
| 32755 | + | |
| 32756 | + | |
| 32757 | + | |
| 32758 | + | |
| 32759 | + | |
32739 | 32760 | | |
32740 | 32761 | | |
32741 | 32762 | | |
| |||
32749 | 32770 | | |
32750 | 32771 | | |
32751 | 32772 | | |
32752 | | - | |
32753 | 32773 | | |
32754 | 32774 | | |
32755 | 32775 | | |
| |||
32941 | 32961 | | |
32942 | 32962 | | |
32943 | 32963 | | |
32944 | | - | |
32945 | 32964 | | |
32946 | 32965 | | |
32947 | 32966 | | |
| |||
0 commit comments