[all-commits] [llvm/llvm-project] ad6171: [X86] `X86TTIImpl::getInterleavedMemoryOpCostAVX51...

Roman Lebedev via All-commits all-commits at lists.llvm.org
Fri Nov 5 07:27:24 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: ad617183bb29c72cedd6ec2e29dc9d1ac3cbdf7f
      https://github.com/llvm/llvm-project/commit/ad617183bb29c72cedd6ec2e29dc9d1ac3cbdf7f
  Author: Roman Lebedev <lebedev.ri at gmail.com>
  Date:   2021-11-05 (Fri, 05 Nov 2021)

  Changed paths:
    M llvm/lib/Target/X86/X86TargetTransformInfo.cpp
    M llvm/test/Analysis/CostModel/X86/interleaved-store-accesses-with-gaps.ll

  Log Message:
  -----------
  [X86] `X86TTIImpl::getInterleavedMemoryOpCostAVX512()`: mask is i8 not i1

Even though AVX512's masked mem ops (unlike AVX1/2) have a mask
that is a `VF x i1`, replication of said masks happens after
promotion of it to `VF x i8`, so we should use `i8`, not `i1`,
when calculating the cost of mask replication.




More information about the All-commits mailing list