summaryrefslogtreecommitdiffstats
path: root/clang/lib/Frontend/CompilerInvocation.cpp
diff options
context:
space:
mode:
authorVedant Kumar <vsk@apple.com>2018-02-22 01:29:41 +0000
committerVedant Kumar <vsk@apple.com>2018-02-22 01:29:41 +0000
commit1ceabcf080b4e46681554a23273018b15576536c (patch)
tree5589faff72d7a92310b52fd65ab22a130b49cb8a /clang/lib/Frontend/CompilerInvocation.cpp
parent55b7e01116bf883c659b3ad2a16cc7c218b739fa (diff)
downloadbcm5719-llvm-1ceabcf080b4e46681554a23273018b15576536c.tar.gz
bcm5719-llvm-1ceabcf080b4e46681554a23273018b15576536c.zip
[Utils] Avoid a hash table lookup in salvageDI, NFC
According to the current coverage report salvageDebugInfo() is called 5.12 million times during testing and almost always returns early. The early return depends on LocalAsMetadata::getIfExists returning null, which involves a DenseMap lookup in an LLVMContextImpl. We can probably speed this up by simply checking the IsUsedByMD bit in Value. llvm-svn: 325738
Diffstat (limited to 'clang/lib/Frontend/CompilerInvocation.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud