diff options
author | Matthias Braun <matze@braunis.de> | 2016-01-30 01:24:31 +0000 |
---|---|---|
committer | Matthias Braun <matze@braunis.de> | 2016-01-30 01:24:31 +0000 |
commit | 5e08bd340a261cf617b67bf576b1562bb62d53f5 (patch) | |
tree | 0a55ea021098895dc3968b88d1dc8500402abfe5 /tools/bugpoint/CrashDebugger.cpp | |
parent | 96c71623000c506b19ce49ef15716979755d1772 (diff) |
Avoid overly large SmallPtrSet/SmallSet
These sets perform linear searching in small mode so it is never a good
idea to use SmallSize/N bigger than 32.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@259283 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'tools/bugpoint/CrashDebugger.cpp')
-rw-r--r-- | tools/bugpoint/CrashDebugger.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/bugpoint/CrashDebugger.cpp b/tools/bugpoint/CrashDebugger.cpp index 6cdc43ab869..7f9a54a389a 100644 --- a/tools/bugpoint/CrashDebugger.cpp +++ b/tools/bugpoint/CrashDebugger.cpp @@ -459,7 +459,7 @@ bool ReduceCrashingInstructions::TestInsts(std::vector<const Instruction*> Module *M = CloneModule(BD.getProgram(), VMap).release(); // Convert list to set for fast lookup... - SmallPtrSet<Instruction*, 64> Instructions; + SmallPtrSet<Instruction*, 32> Instructions; for (unsigned i = 0, e = Insts.size(); i != e; ++i) { assert(!isa<TerminatorInst>(Insts[i])); Instructions.insert(cast<Instruction>(VMap[Insts[i]])); @@ -600,7 +600,7 @@ public: bool ReduceCrashingNamedMDOps::TestNamedMDOps( std::vector<const MDNode *> &NamedMDOps) { // Convert list to set for fast lookup... - SmallPtrSet<const MDNode *, 64> OldMDNodeOps; + SmallPtrSet<const MDNode *, 32> OldMDNodeOps; for (unsigned i = 0, e = NamedMDOps.size(); i != e; ++i) { OldMDNodeOps.insert(NamedMDOps[i]); } |