[PATCH] D124284: [SLP]Try partial store vectorization if supported by target.
Dave Green via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed Apr 27 10:34:03 PDT 2022
dmgreen added inline comments.
================
Comment at: llvm/include/llvm/CodeGen/BasicTTIImpl.h:318
+ std::pair<InstructionCost, MVT> LT =
+ getTLI()->getTypeLegalizationCost(DL, Ty);
+ return getTLI()->isOperationLegalOrCustom(ISD, LT.second);
----------------
Should this be getTypeLegalizationCost or getValueType? Otherwise we are asking for the isOperationLegalOrCustom on a legal type (LT.second) below, which you would hope was always Legal and won't really tell you much about how legal a store to Ty is.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D124284/new/
https://reviews.llvm.org/D124284
More information about the llvm-commits
mailing list