[LLVMbugs] [Bug 12156] New: [ADT] Create a SmallPtrMap type
bugzilla-daemon at llvm.org
bugzilla-daemon at llvm.org
Thu Mar 1 10:55:08 PST 2012
http://llvm.org/bugs/show_bug.cgi?id=12156
Bug #: 12156
Summary: [ADT] Create a SmallPtrMap type
Product: libraries
Version: trunk
Platform: All
OS/Version: All
Status: NEW
Severity: enhancement
Priority: P
Component: Core LLVM classes
AssignedTo: unassignedbugs at nondot.org
ReportedBy: daniel at zuster.org
CC: llvmbugs at cs.uiuc.edu
Classification: Unclassified
There are a number of places in the compiler where we could make good use of a
SmallPtrMap ADT (a map with a small stack allocated buffer).
For example, in:
http://llvm.org/viewvc/llvm-project?view=rev&revision=151697
I ended up caching some DenseMaps that were being allocated many many times,
but in practice these maps are very small, it would be much cleaner to use a
local SmallPtrMap.
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
More information about the llvm-bugs
mailing list