[all-commits] [llvm/llvm-project] c06b7e: [SVE] Fix implicit TypeSize->uint64_t conversion g...

david-arm via All-commits all-commits at lists.llvm.org
Tue Jul 14 00:16:59 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: c06b7e2ab5167ad031745a706204abed1aefd823
      https://github.com/llvm/llvm-project/commit/c06b7e2ab5167ad031745a706204abed1aefd823
  Author: David Sherwood <david.sherwood at arm.com>
  Date:   2020-07-14 (Tue, 14 Jul 2020)

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

  Log Message:
  -----------
  [SVE] Fix implicit TypeSize->uint64_t conversion getCastInstrCost

In getCastInstrCost() when comparing different sizes for src and
dst types we should be using the TypeSize comparison operators
instead of relying upon TypeSize being converted a uin64_t.
Previously this meant we were dropping the scalable property and
treating fixed and scalable vector types the same.

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




More information about the All-commits mailing list