forked from OSchip/llvm-project
ff5a01a7b1
SmallVector<.., 16> (16!!!!) objects to a simple SmallVector of pairs. This no longer de-duplicates the common function pointers used during deallocation, but this doesn't really seem worth the complexity and overhead of managing the map-of-vectors. Notably, there is no reason to assume that functions have the 4-byte alignment that DenseMap relies on, and indeed this prevents checking the alignment of the DenseMap keys because we can't even meaningfully query the alignment of functions using our existing alignment tools. Generally, function pointers don't seem like a great idea for keys in a DenseMap. =] I chatted with Richard Smith about this a bit as well and have written down a FIXME because this *does* waste some memory and in general seems a very clumsy memory management strategy. He would like to see a more fundamental fix eventually here that tries to build a better pattern. llvm-svn: 256610 |
||
---|---|---|
.. | ||
ARCMigrate | ||
AST | ||
ASTMatchers | ||
Analysis | ||
Basic | ||
CodeGen | ||
Driver | ||
Edit | ||
Format | ||
Frontend | ||
FrontendTool | ||
Headers | ||
Index | ||
Lex | ||
Parse | ||
Rewrite | ||
Sema | ||
Serialization | ||
StaticAnalyzer | ||
Tooling | ||
CMakeLists.txt | ||
Makefile |