[PATCH] D78824: [CostModel][X86][ARM] Teach getCastInstrCost to include the splitting factor when handling operations that type legalize to the same number of subvectors or scalar components

Craig Topper via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Apr 24 12:26:44 PDT 2020


craig.topper created this revision.
craig.topper added reviewers: spatel, dmgreen, RKSimon, samparker.
Herald added subscribers: danielkiss, kristof.beyls.

Previously, we just always returned 1. But that ignores that we have to do the operation for each subvector or scalar component.


https://reviews.llvm.org/D78824

Files:
  llvm/include/llvm/CodeGen/BasicTTIImpl.h
  llvm/test/Analysis/CostModel/ARM/cast.ll
  llvm/test/Analysis/CostModel/X86/fptosi.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D78824.259954.patch
Type: text/x-patch
Size: 20102 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200424/189b4340/attachment-0001.bin>


More information about the llvm-commits mailing list