diff options
| author | Florian Hahn <florian.hahn@arm.com> | 2018-06-12 11:16:56 +0000 |
|---|---|---|
| committer | Florian Hahn <florian.hahn@arm.com> | 2018-06-12 11:16:56 +0000 |
| commit | a1cc848399f1a5196659038ec07a8da8fb37ee6b (patch) | |
| tree | d99790e13d6a1dd9e93e3092396eacdd205dd253 /llvm/lib/Transforms/Utils/FunctionComparator.cpp | |
| parent | 74fb5e678982ea7e09da5dc19866ff24979d1e20 (diff) | |
| download | bcm5719-llvm-a1cc848399f1a5196659038ec07a8da8fb37ee6b.tar.gz bcm5719-llvm-a1cc848399f1a5196659038ec07a8da8fb37ee6b.zip | |
Use SmallPtrSet explicitly for SmallSets with pointer types (NFC).
Currently SmallSet<PointerTy> inherits from SmallPtrSet<PointerTy>. This
patch replaces such types with SmallPtrSet, because IMO it is slightly
clearer and allows us to get rid of unnecessarily including SmallSet.h
Reviewers: dblaikie, craig.topper
Reviewed By: dblaikie
Differential Revision: https://reviews.llvm.org/D47836
llvm-svn: 334492
Diffstat (limited to 'llvm/lib/Transforms/Utils/FunctionComparator.cpp')
| -rw-r--r-- | llvm/lib/Transforms/Utils/FunctionComparator.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/llvm/lib/Transforms/Utils/FunctionComparator.cpp b/llvm/lib/Transforms/Utils/FunctionComparator.cpp index aada9f542bd..69203f9f248 100644 --- a/llvm/lib/Transforms/Utils/FunctionComparator.cpp +++ b/llvm/lib/Transforms/Utils/FunctionComparator.cpp @@ -18,7 +18,6 @@ #include "llvm/ADT/ArrayRef.h" #include "llvm/ADT/Hashing.h" #include "llvm/ADT/SmallPtrSet.h" -#include "llvm/ADT/SmallSet.h" #include "llvm/ADT/SmallVector.h" #include "llvm/IR/Attributes.h" #include "llvm/IR/BasicBlock.h" @@ -925,7 +924,7 @@ FunctionComparator::FunctionHash FunctionComparator::functionHash(Function &F) { H.add(F.arg_size()); SmallVector<const BasicBlock *, 8> BBs; - SmallSet<const BasicBlock *, 16> VisitedBBs; + SmallPtrSet<const BasicBlock *, 16> VisitedBBs; // Walk the blocks in the same order as FunctionComparator::cmpBasicBlocks(), // accumulating the hash of the function "structure." (BB and opcode sequence) |

