summaryrefslogtreecommitdiff
path: root/llvm/lib/Bitcode/Reader/BitcodeReader.cpp
diff options
context:
space:
mode:
authorBryan Chan <bryan.chan@huawei.com>2019-01-10 15:02:37 +0000
committerBryan Chan <bryan.chan@huawei.com>2019-01-10 15:02:37 +0000
commit7ce5775e62e2a9dda851f3a60620aa41b3e35c22 (patch)
treecf38ed0f7ab78985f4dba74775737126553ea888 /llvm/lib/Bitcode/Reader/BitcodeReader.cpp
parent0552376cc8330ee9ae2ee0eacc8ecfa4a53f3d20 (diff)
[AArch64] Fix operation actions for FP16 vector intrinsics
Summary: This patch changes the legalization action for some half-precision floating- point vector intrinsics (FSIN, FLOG, etc.) from Promote to Expand. These ops are not supported in hardware for half-precision vectors, but promotion is not always possible (for v8f16 operands). Changing the action to Expand fixes an assertion failure in the legalizer when the frontend produces such ops. In addition, a quick microbenchmark shows that, in the v4f16 case, expanding introduces fewer spills and is therefore slightly faster than promoting. Reviewers: t.p.northover, SjoerdMeijer Reviewed By: SjoerdMeijer Subscribers: javed.absar, kristof.beyls, llvm-commits Differential Revision: https://reviews.llvm.org/D56296 llvm-svn: 350825
Diffstat (limited to 'llvm/lib/Bitcode/Reader/BitcodeReader.cpp')
0 files changed, 0 insertions, 0 deletions