summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Transforms/Scalar/LoopRerollPass.cpp
diff options
context:
space:
mode:
authorCraig Topper <craig.topper@intel.com>2018-06-09 05:04:20 +0000
committerCraig Topper <craig.topper@intel.com>2018-06-09 05:04:20 +0000
commit61998289f93772f354a29417ce76323b13bd4736 (patch)
treee4b2fd98361395bac762d80a575151f1e044fb91 /llvm/lib/Transforms/Scalar/LoopRerollPass.cpp
parentea62c5bbde084900f9ff6fc28afb9059936f2559 (diff)
downloadbcm5719-llvm-61998289f93772f354a29417ce76323b13bd4736.tar.gz
bcm5719-llvm-61998289f93772f354a29417ce76323b13bd4736.zip
Use SmallPtrSet instead of SmallSet in places where we iterate over the set.
SmallSet forwards to SmallPtrSet for pointer types. SmallPtrSet supports iteration, but a normal SmallSet doesn't. So if it wasn't for the forwarding, this wouldn't work. These places were found by hiding the begin/end methods in the SmallSet forwarding llvm-svn: 334343
Diffstat (limited to 'llvm/lib/Transforms/Scalar/LoopRerollPass.cpp')
-rw-r--r--llvm/lib/Transforms/Scalar/LoopRerollPass.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Transforms/Scalar/LoopRerollPass.cpp b/llvm/lib/Transforms/Scalar/LoopRerollPass.cpp
index 6cf37d52683..d4de25ac774 100644
--- a/llvm/lib/Transforms/Scalar/LoopRerollPass.cpp
+++ b/llvm/lib/Transforms/Scalar/LoopRerollPass.cpp
@@ -189,7 +189,7 @@ namespace {
bool PreserveLCSSA;
using SmallInstructionVector = SmallVector<Instruction *, 16>;
- using SmallInstructionSet = SmallSet<Instruction *, 16>;
+ using SmallInstructionSet = SmallPtrSet<Instruction *, 16>;
// Map between induction variable and its increment
DenseMap<Instruction *, int64_t> IVToIncMap;
OpenPOWER on IntegriCloud