[PATCH] D100684: [X86][CostModel] X86TTIImpl::getMemoryOpCost(): rewrite vector handling again
Roman Lebedev via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed Apr 28 06:49:17 PDT 2021
lebedev.ri added inline comments.
================
Comment at: llvm/lib/Target/X86/X86TargetTransformInfo.cpp:3260
+ int NumEltRemaining = SrcNumElt;
+ auto NumEltDone = [&]() { return SrcNumElt - NumEltRemaining; };
+
----------------
ABataev wrote:
> Can be `[=]`
We intentionally capture by-reference, because `NumEltRemaining` will change.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D100684/new/
https://reviews.llvm.org/D100684
More information about the llvm-commits
mailing list