[llvm] [CostModel][X86] Add initial costs for non-lane-crossing one/two input shuffles (PR #114680)
Simon Pilgrim via llvm-commits
llvm-commits at lists.llvm.org
Sun Nov 3 09:57:52 PST 2024
================
@@ -1564,6 +1564,7 @@ InstructionCost X86TTIImpl::getShuffleCost(
bool IsInLaneShuffle = false;
if (BaseTp->getPrimitiveSizeInBits() > 0 &&
(BaseTp->getPrimitiveSizeInBits() % 128) == 0 &&
+ BaseTp->getScalarSizeInBits() == LT.second.getScalarSizeInBits() &&
----------------
RKSimon wrote:
Not, thats what `BaseTp->getPrimitiveSizeInBits() > 0` is checking for as ptr vectors return 0
https://github.com/llvm/llvm-project/pull/114680
More information about the llvm-commits
mailing list