]> granicus.if.org Git - llvm/commit
Delay initialization of three static global maps, NFC
authorReid Kleckner <rnk@google.com>
Thu, 28 Mar 2019 17:33:41 +0000 (17:33 +0000)
committerReid Kleckner <rnk@google.com>
Thu, 28 Mar 2019 17:33:41 +0000 (17:33 +0000)
commitf290220c22d4d26addaeda04439797fbbdb1bd65
tree7cf9d0627df96721e11b09539b23c697ef54ff3e
parent6ec2ba75e9f07a66b8ce7f5071a2b8a30c470a34
Delay initialization of three static global maps, NFC

This avoids allocating a few KB of heap memory on startup, and instead
allocates these maps lazily. I noticed this while profiling LLD.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@357192 91177308-0d34-0410-b5e6-96231b3b80d8
lib/DebugInfo/PDB/Native/PDBStringTableBuilder.cpp
lib/Target/AMDGPU/AMDGPULibFunc.cpp