[all-commits] [llvm/llvm-project] b4a809: [ARM][CostModel] Improve getCastInstrCost

Sam Parker via All-commits all-commits at lists.llvm.org
Tue May 12 02:35:40 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: b4a8091a116a8cee00d635809f3c2e585c6221c4
      https://github.com/llvm/llvm-project/commit/b4a8091a116a8cee00d635809f3c2e585c6221c4
  Author: Sam Parker <sam.parker at arm.com>
  Date:   2020-05-12 (Tue, 12 May 2020)

  Changed paths:
    M llvm/lib/Target/ARM/ARMTargetTransformInfo.cpp
    A llvm/test/Analysis/CostModel/ARM/add-cast-vect.ll
    M llvm/test/Analysis/CostModel/ARM/cast.ll
    A llvm/test/Analysis/CostModel/ARM/mul-cast-vect.ll
    A llvm/test/Analysis/CostModel/ARM/shl-cast-vect.ll
    A llvm/test/Analysis/CostModel/ARM/sub-cast-vect.ll
    R llvm/test/Transforms/LoopVectorize/ARM/mul-cast-vect.ll

  Log Message:
  -----------
  [ARM][CostModel] Improve getCastInstrCost

- 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 pass implementation.

Differential Revision: https://reviews.llvm.org/D79561




More information about the All-commits mailing list