[TTI] Adjust `getReplicationShuffleCost()` interface
authorRoman Lebedev <lebedev.ri@gmail.com>
Tue, 9 Nov 2021 10:59:40 +0000 (13:59 +0300)
committerRoman Lebedev <lebedev.ri@gmail.com>
Tue, 9 Nov 2021 11:07:59 +0000 (14:07 +0300)
commitd484cc152b1d9282230a17a218337342d52536e2
tree1ba2a0c38ca38359dbe3d52f2cbc6ca69b9d0559
parent32a4a883f647c314a42ebd572e36aaf60ffe9889
[TTI] Adjust `getReplicationShuffleCost()` interface

It is trivial to produce DemandedSrcElts given DemandedReplicatedElts,
so don't pass the former. Also, it isn't really useful so far
to have the overload taking the Mask, so just inline it.
llvm/include/llvm/Analysis/TargetTransformInfo.h
llvm/include/llvm/Analysis/TargetTransformInfoImpl.h
llvm/include/llvm/CodeGen/BasicTTIImpl.h
llvm/lib/Analysis/TargetTransformInfo.cpp
llvm/lib/Target/X86/X86TargetTransformInfo.cpp