[PATCH] D112307: [X86] `X86TTIImpl::getInterleavedMemoryOpCost()`: scale interleaving cost by the fraction of live members
Simon Pilgrim via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Fri Oct 22 05:57:39 PDT 2021
RKSimon accepted this revision.
RKSimon added a comment.
This revision is now accepted and ready to land.
SGTM - cheers
================
Comment at: llvm/lib/Target/X86/X86TargetTransformInfo.cpp:5428
if (Opcode == Instruction::Load) {
- // FIXME: if we have a partially-interleaved groups, with gaps,
- // should we discount the not-demanded indicies?
+ auto GetDiscountedCost = [Factor, NumMembers = Indices.size(),
+ MemOpCosts](const CostTblEntry *Entry) {
----------------
Add a comment explaining this is just an approximation
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D112307/new/
https://reviews.llvm.org/D112307
More information about the llvm-commits
mailing list