@@ -7186,7 +7186,6 @@ void BoUpSLP::reorderTopToBottom() {
7186
7186
MapVector<OrdersType, unsigned,
7187
7187
DenseMap<OrdersType, unsigned, OrdersTypeDenseMapInfo>>
7188
7188
OrdersUses;
7189
- SmallPtrSet<const TreeEntry *, 4> VisitedOps;
7190
7189
for (const TreeEntry *OpTE : OrderedEntries) {
7191
7190
// No need to reorder this nodes, still need to extend and to use shuffle,
7192
7191
// just need to merge reordering shuffle and the reuse shuffle.
@@ -8153,7 +8152,6 @@ static void gatherPossiblyVectorizableLoads(
8153
8152
int &Offset, unsigned &Start) {
8154
8153
if (Loads.empty())
8155
8154
return GatheredLoads.end();
8156
- SmallVector<std::pair<int, int>> Res;
8157
8155
LoadInst *LI = Loads.front().first;
8158
8156
for (auto [Idx, Data] : enumerate(GatheredLoads)) {
8159
8157
if (Idx < Start)
@@ -13801,7 +13799,6 @@ bool BoUpSLP::isFullyVectorizableTinyTree(bool ForReduction) const {
13801
13799
// with the second gather nodes if they have less scalar operands rather than
13802
13800
// the initial tree element (may be profitable to shuffle the second gather)
13803
13801
// or they are extractelements, which form shuffle.
13804
- SmallVector<int> Mask;
13805
13802
if (VectorizableTree[0]->State == TreeEntry::Vectorize &&
13806
13803
AreVectorizableGathers(VectorizableTree[1].get(),
13807
13804
VectorizableTree[0]->Scalars.size()))
@@ -16875,8 +16872,6 @@ ResTy BoUpSLP::processBuildVector(const TreeEntry *E, Type *ScalarTy,
16875
16872
unsigned VF = E->getVectorFactor();
16876
16873
16877
16874
bool NeedFreeze = false;
16878
- SmallVector<int> ReuseShuffleIndices(E->ReuseShuffleIndices.begin(),
16879
- E->ReuseShuffleIndices.end());
16880
16875
SmallVector<Value *> GatheredScalars(E->Scalars.begin(), E->Scalars.end());
16881
16876
// Clear values, to be replaced by insertvector instructions.
16882
16877
for (auto [EIdx, Idx] : E->CombinedEntriesWithIndices)
@@ -17619,7 +17614,6 @@ Value *BoUpSLP::vectorizeTree(TreeEntry *E) {
17619
17614
SmallPtrSet<BasicBlock *, 4> VisitedBBs;
17620
17615
17621
17616
for (unsigned I : seq<unsigned>(PH->getNumIncomingValues())) {
17622
- ValueList Operands;
17623
17617
BasicBlock *IBB = PH->getIncomingBlock(I);
17624
17618
17625
17619
// Stop emission if all incoming values are generated.
@@ -18291,7 +18285,6 @@ Value *BoUpSLP::vectorizeTree(TreeEntry *E) {
18291
18285
TysForDecl.push_back(VecTy);
18292
18286
auto *CEI = cast<CallInst>(VL0);
18293
18287
for (unsigned I : seq<unsigned>(0, CI->arg_size())) {
18294
- ValueList OpVL;
18295
18288
// Some intrinsics have scalar arguments. This argument should not be
18296
18289
// vectorized.
18297
18290
if (UseIntrinsic && isVectorIntrinsicWithScalarOpAtArg(ID, I, TTI)) {
0 commit comments