Skip to content

Commit 369c0eb

Browse files
committed
[SLP][NFC]Use SmallVector instead of std::vector and remove unused
includes, NFC.
1 parent cae46f6 commit 369c0eb

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

llvm/lib/Transforms/Vectorize/SLPVectorizer.cpp

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@
1919
#include "llvm/Transforms/Vectorize/SLPVectorizer.h"
2020
#include "llvm/ADT/DenseMap.h"
2121
#include "llvm/ADT/DenseSet.h"
22-
#include "llvm/ADT/PostOrderIterator.h"
2322
#include "llvm/ADT/PriorityQueue.h"
2423
#include "llvm/ADT/STLExtras.h"
2524
#include "llvm/ADT/SetOperations.h"
@@ -98,7 +97,6 @@
9897
#include <string>
9998
#include <tuple>
10099
#include <utility>
101-
#include <vector>
102100

103101
using namespace llvm;
104102
using namespace llvm::PatternMatch;
@@ -3486,7 +3484,7 @@ class BoUpSLP {
34863484
BasicBlock *BB;
34873485

34883486
/// Simple memory allocation for ScheduleData.
3489-
std::vector<std::unique_ptr<ScheduleData[]>> ScheduleDataChunks;
3487+
SmallVector<std::unique_ptr<ScheduleData[]>> ScheduleDataChunks;
34903488

34913489
/// The size of a ScheduleData array in ScheduleDataChunks.
34923490
int ChunkSize;
@@ -11614,7 +11612,7 @@ Value *BoUpSLP::vectorizeTree(TreeEntry *E, bool PostponedPHIs) {
1161411612
VecCallCosts.first <= VecCallCosts.second;
1161511613

1161611614
Value *ScalarArg = nullptr;
11617-
std::vector<Value *> OpVecs;
11615+
SmallVector<Value *> OpVecs;
1161811616
SmallVector<Type *, 2> TysForDecl;
1161911617
// Add return type if intrinsic is overloaded on it.
1162011618
if (isVectorIntrinsicWithOverloadTypeAtArg(IID, -1))

0 commit comments

Comments
 (0)