]> granicus.if.org Git - llvm/commit
Object: Shrink the size of irsymtab::Symbol by a word. NFCI.
authorPeter Collingbourne <peter@pcc.me.uk>
Mon, 17 Apr 2017 23:43:49 +0000 (23:43 +0000)
committerPeter Collingbourne <peter@pcc.me.uk>
Mon, 17 Apr 2017 23:43:49 +0000 (23:43 +0000)
commit4df72d14c8bb3e1c184e28e2c206848366328b1e
treece2c33da73a89f157bc70c1f68b4f91c45c5139d
parent62b2c39c08511b4863f306e85a378276f0056c7d
Object: Shrink the size of irsymtab::Symbol by a word. NFCI.

Instead of storing an UncommonIndex on the Symbol, use a flag bit to store
whether the Symbol has an Uncommon. This shrinks Chromium's .bc files (after
D32061) by about 1%.

Differential Revision: https://reviews.llvm.org/D32070

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@300514 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/Object/IRSymtab.h
lib/Object/IRSymtab.cpp