summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/BPF/BPFMCInstLower.cpp
diff options
context:
space:
mode:
authorOwen Anderson <resistor@mac.com>2015-06-01 22:24:01 +0000
committerOwen Anderson <resistor@mac.com>2015-06-01 22:24:01 +0000
commit7349ab9385070b80b282232485724b8e3d759654 (patch)
tree91e02fe69553bdea33b16e7593ee7261d4631825 /llvm/lib/Target/BPF/BPFMCInstLower.cpp
parentf30ad9bb2acb822a24a2c7c001f5d6804cc34dd6 (diff)
downloadbcm5719-llvm-7349ab9385070b80b282232485724b8e3d759654.tar.gz
bcm5719-llvm-7349ab9385070b80b282232485724b8e3d759654.zip
Move the name pointer out of Value into a map that lives on the
LLVMContext. Production builds of clang do not set names on most Value's, so this is wasted space on almost all subclasses of Value. This reduces the size of all Value subclasses by 8 bytes on 64 bit hosts. The one tricky part of this change is averting compile time regression by keeping Value::hasName() fast. This required stealing bits out of NumOperands. With this change, peak memory usage on verify-uselistorder-nodbg.lto.bc is decreased by approximately 2.3% (~3MB absolute on my machine). llvm-svn: 238791
Diffstat (limited to 'llvm/lib/Target/BPF/BPFMCInstLower.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud