[PATCH] D99935: [AArch64] Add instruction costs for FP_TO_UINT and FP_TO_SINT with half types

David Sherwood via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Apr 6 03:18:29 PDT 2021


david-arm created this revision.
david-arm added reviewers: sdesmalen, nasherm, CarolineConcatto.
Herald added subscribers: danielkiss, hiraditya, kristof.beyls.
david-arm requested review of this revision.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.

We were missing some instruction costs when converting vectors of
floating point half types into integers. This patch adds more costs
to the table in getCastInstrCost and updates an existing test:

  Analysis/CostModel/AArch64/sve-fptoi.ll


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D99935

Files:
  llvm/lib/Target/AArch64/AArch64TargetTransformInfo.cpp
  llvm/test/Analysis/CostModel/AArch64/sve-fptoi.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D99935.335454.patch
Type: text/x-patch
Size: 9881 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20210406/9601d647/attachment.bin>


More information about the llvm-commits mailing list