[all-commits] [llvm/llvm-project] 86bba6: [Sema] Use the canonical type in function isVector

Akira Hatanaka via All-commits all-commits at lists.llvm.org
Fri Mar 13 13:10:04 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 86bba6c6410c31e669b10f182c6d1a03f704555a
      https://github.com/llvm/llvm-project/commit/86bba6c6410c31e669b10f182c6d1a03f704555a
  Author: Akira Hatanaka <ahatanaka at apple.com>
  Date:   2020-03-13 (Fri, 13 Mar 2020)

  Changed paths:
    M clang/lib/Sema/SemaExpr.cpp
    M clang/test/CodeGen/fp16-ops.c

  Log Message:
  -----------
  [Sema] Use the canonical type in function isVector

This reapplies the following patch, which was reverted because it caused
neon CodeGen tests to fail:

https://reviews.llvm.org/rGa6150b48cea00ab31e9335cc73770327acc4cb3a

I've added checks to detect half precision neon vectors and avoid
promiting them to vectors of floats.

See the discussion here: https://reviews.llvm.org/rG825235c140e7

Original commit message:

This fixes an assertion in Sema::CreateBuiltinBinOp that fails when one
of the vector operand's element type is a typedef of __fp16.

rdar://problem/55983556




More information about the All-commits mailing list