[PATCH] D105042: [SLP][COST][X86]Improve cost model for masked gather.
Anton Afanasyev via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Tue Jul 6 15:34:00 PDT 2021
anton-afanasyev added inline comments.
================
Comment at: llvm/lib/Transforms/Vectorize/SLPVectorizer.cpp:3015
+ CommonAlignment =
+ commonAlignment(CommonAlignment, cast<LoadInst>(V)->getAlign());
+ if (TTI->isLegalMaskedGather(FixedVectorType::get(ScalarTy, VL.size()),
----------------
Maybe it's worth to use `CommonAlignment` for `getEntryCost()` as well? This patch looks good one to take this code from D57059.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D105042/new/
https://reviews.llvm.org/D105042
More information about the llvm-commits
mailing list