[llvm] [SLP]Emit actual bitwidth for analyzed MinBitwidth nodes, NFCI. (PR #71536)
Simon Pilgrim via llvm-commits
llvm-commits at lists.llvm.org
Tue Nov 7 07:43:22 PST 2023
================
@@ -7892,6 +7892,30 @@ BoUpSLP::getEntryCost(const TreeEntry *E, ArrayRef<Value *> VectorizedVals,
continue;
UsedScalars.set(I);
}
+ auto GetCastGontextHint = [&](Value *V) {
+ TTI::CastContextHint CCH = TTI::CastContextHint::None;
+ if (const TreeEntry *OpTE = getTreeEntry(V)) {
+ if (OpTE->State == TreeEntry::ScatterVectorize) {
+ CCH = TTI::CastContextHint::GatherScatter;
----------------
RKSimon wrote:
(style) just return the CCH enum and break up the if-else chains
https://github.com/llvm/llvm-project/pull/71536
More information about the llvm-commits
mailing list