MC: Shave a pointer off of MCSymbol::Name
authorDuncan P. N. Exon Smith <dexonsmith@apple.com>
Fri, 22 May 2015 06:04:42 +0000 (06:04 +0000)
committerDuncan P. N. Exon Smith <dexonsmith@apple.com>
Fri, 22 May 2015 06:04:42 +0000 (06:04 +0000)
commit03656162a3dcdfb71ee727fd2a00d75237359b32
tree4f6850e45842d6f44fdc84b6d181bfe3aa26e401
parent87fc5f8695d9b1ef6ae807e79680bdcf7c94f546
MC: Shave a pointer off of MCSymbol::Name

Shave a pointer off of `MCSymbolName` by storing `StringMapEntry<bool>*`
instead of `StringRef`.  This brings `sizeof(MCSymbol)` down to 64 on
64-bit platforms, a nice round number.  My profile showed memory
dropping from 914 MB down to 908 MB, roughly 0.7%.  Other than memory
usage, no functionality change here.

(I'm looking at `llc` memory usage on `verify-uselistorder.lto.opt.bc`;
see r236629 for details.)

llvm-svn: 238005
llvm/include/llvm/MC/MCSymbol.h
llvm/lib/MC/MCContext.cpp