@@ -7186,7 +7186,6 @@ void BoUpSLP::reorderTopToBottom() {
71867186 MapVector<OrdersType, unsigned,
71877187 DenseMap<OrdersType, unsigned, OrdersTypeDenseMapInfo>>
71887188 OrdersUses;
7189- SmallPtrSet<const TreeEntry *, 4> VisitedOps;
71907189 for (const TreeEntry *OpTE : OrderedEntries) {
71917190 // No need to reorder this nodes, still need to extend and to use shuffle,
71927191 // just need to merge reordering shuffle and the reuse shuffle.
@@ -8153,7 +8152,6 @@ static void gatherPossiblyVectorizableLoads(
81538152 int &Offset, unsigned &Start) {
81548153 if (Loads.empty())
81558154 return GatheredLoads.end();
8156- SmallVector<std::pair<int, int>> Res;
81578155 LoadInst *LI = Loads.front().first;
81588156 for (auto [Idx, Data] : enumerate(GatheredLoads)) {
81598157 if (Idx < Start)
@@ -13801,7 +13799,6 @@ bool BoUpSLP::isFullyVectorizableTinyTree(bool ForReduction) const {
1380113799 // with the second gather nodes if they have less scalar operands rather than
1380213800 // the initial tree element (may be profitable to shuffle the second gather)
1380313801 // or they are extractelements, which form shuffle.
13804- SmallVector<int> Mask;
1380513802 if (VectorizableTree[0]->State == TreeEntry::Vectorize &&
1380613803 AreVectorizableGathers(VectorizableTree[1].get(),
1380713804 VectorizableTree[0]->Scalars.size()))
@@ -16875,8 +16872,6 @@ ResTy BoUpSLP::processBuildVector(const TreeEntry *E, Type *ScalarTy,
1687516872 unsigned VF = E->getVectorFactor();
1687616873
1687716874 bool NeedFreeze = false;
16878- SmallVector<int> ReuseShuffleIndices(E->ReuseShuffleIndices.begin(),
16879- E->ReuseShuffleIndices.end());
1688016875 SmallVector<Value *> GatheredScalars(E->Scalars.begin(), E->Scalars.end());
1688116876 // Clear values, to be replaced by insertvector instructions.
1688216877 for (auto [EIdx, Idx] : E->CombinedEntriesWithIndices)
@@ -17619,7 +17614,6 @@ Value *BoUpSLP::vectorizeTree(TreeEntry *E) {
1761917614 SmallPtrSet<BasicBlock *, 4> VisitedBBs;
1762017615
1762117616 for (unsigned I : seq<unsigned>(PH->getNumIncomingValues())) {
17622- ValueList Operands;
1762317617 BasicBlock *IBB = PH->getIncomingBlock(I);
1762417618
1762517619 // Stop emission if all incoming values are generated.
@@ -18291,7 +18285,6 @@ Value *BoUpSLP::vectorizeTree(TreeEntry *E) {
1829118285 TysForDecl.push_back(VecTy);
1829218286 auto *CEI = cast<CallInst>(VL0);
1829318287 for (unsigned I : seq<unsigned>(0, CI->arg_size())) {
18294- ValueList OpVL;
1829518288 // Some intrinsics have scalar arguments. This argument should not be
1829618289 // vectorized.
1829718290 if (UseIntrinsic && isVectorIntrinsicWithScalarOpAtArg(ID, I, TTI)) {
0 commit comments