[all-commits] [llvm/llvm-project] f373b3: [ARM] Add MVE add.sat costs

David Green via All-commits all-commits at lists.llvm.org
Tue Jan 19 07:43:52 PST 2021


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: f373b30923d7a83985e59ec76a566dd889e684d9
      https://github.com/llvm/llvm-project/commit/f373b30923d7a83985e59ec76a566dd889e684d9
  Author: David Green <david.green at arm.com>
  Date:   2021-01-19 (Tue, 19 Jan 2021)

  Changed paths:
    M llvm/lib/Target/ARM/ARMTargetTransformInfo.cpp
    M llvm/test/Analysis/CostModel/ARM/arith-ssat.ll
    M llvm/test/Analysis/CostModel/ARM/arith-usat.ll

  Log Message:
  -----------
  [ARM] Add MVE add.sat costs

This adds some basic MVE sadd_sat/ssub_sat/uadd_sat/usub_sat costs,
based on when the instruction is legal. With smaller than legal types
that are promoted we generate shr(qadd(shl, shl)), so the cost is 4
appropriately.

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




More information about the All-commits mailing list