[all-commits] [llvm/llvm-project] 0c0113: [X86] Don't lower f16->f80 fpext to libcall on dar...

Davide Italiano via All-commits all-commits at lists.llvm.org
Tue Nov 22 12:32:37 PST 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 0c011335c9c6b0c0598f8fa7393af5e8aad428a2
      https://github.com/llvm/llvm-project/commit/0c011335c9c6b0c0598f8fa7393af5e8aad428a2
  Author: Davide Italiano <ditaliano at apple.com>
  Date:   2022-11-22 (Tue, 22 Nov 2022)

  Changed paths:
    M llvm/lib/Target/X86/X86ISelLowering.cpp
    A llvm/test/CodeGen/X86/half-fp80-darwin.ll

  Log Message:
  -----------
  [X86] Don't lower f16->f80 fpext to libcall on darwin.

We don't provide __extendhfxf2, and only have the soft-float
__extendhfsf2 in compiler-rt.  This only changed recently with
655ba9c8a1d2, so this patch reverts back to the previous behavior.

However, the f80->f16 fptrunc is not easily implementable without
the compiler-rt __truncxfhf2, but that has always been true, and
isn't an immediate regression.

Patch by Ahmed Bougacha.

rdar://102194995




More information about the All-commits mailing list