[llvm] [X86] Use round-to-odd for f64->f16 with F16C (PR #230079)
Aochang Liu via llvm-commits
llvm-commits at lists.llvm.org
Sun Oct 11 23:00:02 PDT 2026
HelloWorldU wrote:
I also did a quick check on AMDGPU. On gfx900, the contract two-step is 4 instructions without the fold and 42 with it. Targets with a direct f64->f16 instruction (AArch64, RISC-V with Zfh/Zfhmin) do benefit from the fold, so whether to fold depends on the target, and a TLI hook would help AMDGPU as well, not only X86. (Checked with AI assistance.)
https://github.com/llvm/llvm-project/pull/230079
More information about the llvm-commits
mailing list