[PATCH] D49987: [ARM] Make FP16 vectors legal

Mikhail Maltsev via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Aug 1 08:51:23 PDT 2018


miyuki updated this revision to Diff 158541.
miyuki retitled this revision from "[ARM] Allow half-precision FP softening" to "[ARM] Make FP16 vectors legal".
miyuki edited the summary of this revision.
miyuki added a comment.

This approach worked, but required handling two more operations in PromoteFloatOperand: PromoteFloatOp_BUILD_VECTOR and PromoteFloatOp_INSERT_VECTOR_ELT, which in my implementation don't actually promote anything but rather do some FP softening. Not sure if there is a better solution.


https://reviews.llvm.org/D49987

Files:
  lib/CodeGen/SelectionDAG/LegalizeFloatTypes.cpp
  lib/CodeGen/SelectionDAG/LegalizeTypes.h
  lib/Target/ARM/ARMISelLowering.cpp
  lib/Target/ARM/ARMISelLowering.h
  test/CodeGen/ARM/fp16-promote.ll
  test/CodeGen/ARM/fp16-v3.ll
  test/CodeGen/ARM/vfp16-calling-conv.ll
  test/Transforms/LoopVectorize/ARM/interleaved_cost.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D49987.158541.patch
Type: text/x-patch
Size: 16243 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20180801/1df64674/attachment.bin>


More information about the llvm-commits mailing list