[PATCH] D113601: [AArch64] Use custom lowering for {U,S}INT_TO_FP with i8.

Florian Hahn via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Nov 10 11:56:01 PST 2021


fhahn created this revision.
fhahn added reviewers: dmgreen, ab, aemerson.
Herald added subscribers: hiraditya, kristof.beyls.
fhahn requested review of this revision.
Herald added a project: LLVM.

With fullfp16, it is cheaper to cast the {U,S}INT_TO_FP operand to i16
first, rather than promoting it to i32. The custom lowering for
{U,S}INT_TO_FP  already supports that, it just needs to be used.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D113601

Files:
  llvm/lib/Target/AArch64/AArch64ISelLowering.cpp
  llvm/test/CodeGen/AArch64/fp16-v8-instructions.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D113601.386275.patch
Type: text/x-patch
Size: 8139 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20211110/75c94862/attachment.bin>


More information about the llvm-commits mailing list