[PATCH] BumpPtr allocate SimpleReferences

Rui Ueyama ruiu at google.com
Thu Dec 4 11:11:07 PST 2014


I think the other way is to pass a custom Allocator backed by a BumpPtr owned by File to std::vector owned by DefinedAtom, so that the vector in a DefinedAtom is freed when the file is deleted. I'd expect it would be faster than the linked list (because of better memory locality). Also could eliminate the copy-to-vector-and-sort code.

http://reviews.llvm.org/D6518






More information about the llvm-commits mailing list