[all-commits] [llvm/llvm-project] 19601a: [SVE][Analysis]Instruction costs for ops on scalab...

Nashe Mncube via All-commits all-commits at lists.llvm.org
Mon Mar 29 03:16:18 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 19601a4c6c4887e167dabf64bb2393dd1c399fe9
      https://github.com/llvm/llvm-project/commit/19601a4c6c4887e167dabf64bb2393dd1c399fe9
  Author: Nashe Mncube <nashe.mncube at arm.com>
  Date:   2021-03-29 (Mon, 29 Mar 2021)

  Changed paths:
    M llvm/lib/Target/AArch64/AArch64TargetTransformInfo.cpp
    A llvm/test/Analysis/CostModel/AArch64/sve-fpext.ll
    A llvm/test/Analysis/CostModel/AArch64/sve-fptoi.ll
    A llvm/test/Analysis/CostModel/AArch64/sve-fptrunc.ll
    M llvm/test/Analysis/CostModel/AArch64/sve-trunc.ll

  Log Message:
  -----------
  [SVE][Analysis]Instruction costs for ops on scalable-vec

The following operations have no associated cost for them
when applied to scalable vectors, and as a consequence
can trigger a crash when a call is made to
AArch64TTIImpl::getCastInstrCost():
- fptrunc
- trunc
- fpext
- fpto(u,s)i

This patch adds costs for these operations and
relevant regression tests.

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




More information about the All-commits mailing list