[all-commits] [llvm/llvm-project] e9e1d4: [X86] Refactor GetSSETypeAtOffset to fix pr51813

Pengfei Wang via All-commits all-commits at lists.llvm.org
Thu Sep 16 20:13:26 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: e9e1d4751b54126743ed72b1a9178ee51200acf6
      https://github.com/llvm/llvm-project/commit/e9e1d4751b54126743ed72b1a9178ee51200acf6
  Author: Wang, Pengfei <pengfei.wang at intel.com>
  Date:   2021-09-17 (Fri, 17 Sep 2021)

  Changed paths:
    M clang/lib/CodeGen/TargetInfo.cpp
    M clang/test/CodeGen/X86/avx512fp16-abi.c

  Log Message:
  -----------
  [X86] Refactor GetSSETypeAtOffset to fix pr51813

D105263 adds support for _Float16 type. It introduced a bug (pr51813) that generates a <4 x half> type instead the default double when passing blank structure by SSE registers.

Although I doubt it may expose a bug somewhere other than D105263, it's good to avoid return half type when no half type in arguments.

Reviewed By: LuoYuanke

Differential Revision: https://reviews.llvm.org/D109607




More information about the All-commits mailing list