File tree Expand file tree Collapse file tree 2 files changed +3
-5
lines changed Expand file tree Collapse file tree 2 files changed +3
-5
lines changed Original file line number Diff line number Diff line change 21
21
22
22
#include " llvm/ADT/DenseMap.h"
23
23
#include " llvm/ADT/DenseSet.h"
24
- #include " llvm/ADT/SmallPtrSet .h"
24
+ #include " llvm/ADT/SetVector .h"
25
25
#include " llvm/ADT/SmallVector.h"
26
26
#include " llvm/IR/PassManager.h"
27
27
#include " llvm/IR/ValueHandle.h"
@@ -40,7 +40,7 @@ class Function;
40
40
// / it is queried.
41
41
class PhiValues {
42
42
public:
43
- using ValueSet = SmallPtrSet <Value *, 4 >;
43
+ using ValueSet = SmallSetVector <Value *, 4 >;
44
44
45
45
// / Construct an empty PhiValues.
46
46
PhiValues (const Function &F) : F(F) {}
@@ -70,8 +70,7 @@ class PhiValues {
70
70
FunctionAnalysisManager::Invalidator &);
71
71
72
72
private:
73
- using PhiSet = SmallPtrSet<const PHINode *, 4 >;
74
- using ConstValueSet = SmallPtrSet<const Value *, 4 >;
73
+ using ConstValueSet = SmallSetVector<const Value *, 4 >;
75
74
76
75
// / The next depth number to be used by processPhi.
77
76
unsigned int NextDepthNumber = 1 ;
Original file line number Diff line number Diff line change 7
7
// ===----------------------------------------------------------------------===//
8
8
9
9
#include " llvm/Analysis/PhiValues.h"
10
- #include " llvm/ADT/SmallPtrSet.h"
11
10
#include " llvm/ADT/SmallVector.h"
12
11
#include " llvm/IR/Instructions.h"
13
12
#include " llvm/InitializePasses.h"
You can’t perform that action at this time.
0 commit comments