[all-commits] [llvm/llvm-project] c3277a: [BasicTTI] Set scalarization cost of scalable vect...

sdesmalen-arm via All-commits all-commits at lists.llvm.org
Sat Jul 24 06:14:54 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: c3277a88285e5e40e6d5ee9da7342fae42eaf82e
      https://github.com/llvm/llvm-project/commit/c3277a88285e5e40e6d5ee9da7342fae42eaf82e
  Author: Sander de Smalen <sander.desmalen at arm.com>
  Date:   2021-07-24 (Sat, 24 Jul 2021)

  Changed paths:
    M llvm/include/llvm/CodeGen/BasicTTIImpl.h
    M llvm/test/Analysis/CostModel/AArch64/sve-fptoi.ll

  Log Message:
  -----------
  [BasicTTI] Set scalarization cost of scalable vector casts to Invalid.

When BasicTTIImpl::getCastInstrCost can't determine the cost of a
vector cast operation when the types need legalization, it falls
back to calculating scalarization costs. Instead of crashing on
`cast<FixedVectorType>(DstVTy)` when the type is a scalable vector,
return an Invalid cost.

Reviewed By: david-arm

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




More information about the All-commits mailing list