[PATCH] D42580: [ARM] Armv8.2-A FP16 code generation (part 2/3)

Sjoerd Meijer via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Jan 26 09:08:14 PST 2018


SjoerdMeijer created this revision.
SjoerdMeijer added reviewers: samparker, olista01, eli.friedman, t.p.northover.
Herald added subscribers: kristof.beyls, javed.absar, aemerson.

Half-precision arguments and return values are passed as if it 
were an int or float for ARM. This results in truncates and
bitcasts to/from i16 and f16 values, which are legalized very 
early to stack stores/loads. When FullFP16 is enabled, we want
to avoid codegen for these bitcasts as it is unnecessary and
inefficient.


https://reviews.llvm.org/D42580

Files:
  lib/Target/ARM/ARMISelLowering.cpp
  lib/Target/ARM/ARMInstrVFP.td
  test/CodeGen/ARM/fp16-instructions.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D42580.131599.patch
Type: text/x-patch
Size: 5935 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20180126/8778f376/attachment.bin>


More information about the llvm-commits mailing list