summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Transforms/Utils/LoopUnroll.cpp
diff options
context:
space:
mode:
authorReid Kleckner <rnk@google.com>2017-01-10 23:23:58 +0000
committerReid Kleckner <rnk@google.com>2017-01-10 23:23:58 +0000
commit443423e38aac79528cced84bda62e10ee4746033 (patch)
treefb593b06191879e984e7749be02d15df0a82ff41 /llvm/lib/Transforms/Utils/LoopUnroll.cpp
parent3f509042b0cc4ec189585c59da87936d7c259501 (diff)
downloadbcm5719-llvm-443423e38aac79528cced84bda62e10ee4746033.tar.gz
bcm5719-llvm-443423e38aac79528cced84bda62e10ee4746033.zip
Move the section name from GlobalObject to the LLVMContext
Summary: Convention wisdom says that bytes in Function are precious, and the vast, vast majority of globals do not live in special sections. Even when they do, they tend to live in the same section. Store the section name on the LLVMContext in a StringSet, and maintain a map from GlobalObject* to section name like we do for metadata, prefix data, etc. The fact that we've survived this long wasting at least three pointers of space in Function suggests that Function bytes are perhaps not as precious as we once thought. Given that most functions have metadata attachments when debug info is enabled, we might consider adding a pointer here to make that access more efficient. Reviewers: jlebar, dexonsmith, mehdi_amini Subscribers: mehdi_amini, aprantl, llvm-commits Differential Revision: https://reviews.llvm.org/D28150 llvm-svn: 291613
Diffstat (limited to 'llvm/lib/Transforms/Utils/LoopUnroll.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud