[PATCH] D79561: [ARM][CostModel] Improve getCastInstrCost

Sam Parker via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu May 7 03:55:05 PDT 2020


samparker created this revision.
samparker added reviewers: dmgreen, SjoerdMeijer, efriedma, fhahn, t.p.northover.
Herald added subscribers: danielkiss, hiraditya, kristof.beyls.
Herald added a project: LLVM.

- Specifically check for sext/zext users which have 'long' form NEON instructions.
- Add more entries to the table for sext/zexts so that we can report more accurately the number of vmovls required for NEON.
- Pass the instruction to the base implementation.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D79561

Files:
  llvm/lib/Target/ARM/ARMTargetTransformInfo.cpp
  llvm/test/Analysis/CostModel/ARM/cast.ll
  llvm/test/Transforms/LoopVectorize/ARM/add-cast-vect.ll
  llvm/test/Transforms/LoopVectorize/ARM/shl-cast-vect.ll
  llvm/test/Transforms/LoopVectorize/ARM/sub-cast-vect.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D79561.262586.patch
Type: text/x-patch
Size: 30521 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200507/b68bd98d/attachment.bin>


More information about the llvm-commits mailing list