OSDN Git Service

Use SmallPtrSet explicitly for SmallSets with pointer types (NFC).
authorFlorian Hahn <florian.hahn@arm.com>
Tue, 12 Jun 2018 11:16:56 +0000 (11:16 +0000)
committerFlorian Hahn <florian.hahn@arm.com>
Tue, 12 Jun 2018 11:16:56 +0000 (11:16 +0000)
commitb2621b34b756cfd6f4005856c36cffd4eb9157fa
tree763285474e9dd3a5e021f8a3fb6c61f4307dd1f6
parenta1847c760ce1d450eef032be758804f3904e33e3
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

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@334492 91177308-0d34-0410-b5e6-96231b3b80d8
15 files changed:
lib/Transforms/IPO/FunctionAttrs.cpp
lib/Transforms/IPO/GlobalOpt.cpp
lib/Transforms/IPO/MergeFunctions.cpp
lib/Transforms/Instrumentation/AddressSanitizer.cpp
lib/Transforms/Instrumentation/ThreadSanitizer.cpp
lib/Transforms/Scalar/LoopLoadElimination.cpp
lib/Transforms/Scalar/LoopRerollPass.cpp
lib/Transforms/Scalar/LoopUnswitch.cpp
lib/Transforms/Scalar/SpeculativeExecution.cpp
lib/Transforms/Utils/FunctionComparator.cpp
lib/Transforms/Utils/LoopUnrollRuntime.cpp
lib/Transforms/Utils/SimplifyCFG.cpp
lib/Transforms/Vectorize/LoopVectorize.cpp
lib/Transforms/Vectorize/SLPVectorizer.cpp
lib/Transforms/Vectorize/VPlan.h