[llvm] [SLP]Emit actual bitwidth for analyzed MinBitwidth nodes, NFCI. (PR #71536)
Alexey Bataev via llvm-commits
llvm-commits at lists.llvm.org
Wed Feb 28 05:46:51 PST 2024
================
@@ -9034,6 +9079,28 @@ InstructionCost BoUpSLP::getTreeCost(ArrayRef<Value *> VectorizedVals) {
FirstUsers.emplace_back(VU, ScalarTE);
DemandedElts.push_back(APInt::getZero(FTy->getNumElements()));
VecId = FirstUsers.size() - 1;
+ auto It = MinBWs.find(EU.Scalar);
+ if (It != MinBWs.end() && VectorCasts.insert(EU.Scalar).second) {
+ unsigned BWSz = It->second.second;
----------------
alexey-bataev wrote:
Yep, will fix it.
https://github.com/llvm/llvm-project/pull/71536
More information about the llvm-commits
mailing list