summaryrefslogtreecommitdiffstats
path: root/lldb/packages/Python/lldbsuite/test/lang/cpp/scope/main.cpp
diff options
context:
space:
mode:
authorAndrea Di Biagio <Andrea_DiBiagio@sn.scee.net>2019-02-06 14:57:28 +0000
committerAndrea Di Biagio <Andrea_DiBiagio@sn.scee.net>2019-02-06 14:57:28 +0000
commit02974728dc45d641ad6b833767150adcb8aaf5fe (patch)
tree314dc38187a89908d11005f5fe43cf2c96fdd0c7 /lldb/packages/Python/lldbsuite/test/lang/cpp/scope/main.cpp
parentae54e58b90a5e2208b6d3da5245eda6625dc1ed1 (diff)
downloadbcm5719-llvm-02974728dc45d641ad6b833767150adcb8aaf5fe.tar.gz
bcm5719-llvm-02974728dc45d641ad6b833767150adcb8aaf5fe.zip
[MCA] Speedup ResourceManager queries. NFCI
When a resource unit R is released, the ResourceManager notifies groups that contain R. Before this patch, the logic in method ResourceManager::release() implemented a potentially slow iterative search of dependent groups on the entire set of processor resources. This patch replaces that logic with a simpler (and often faster) lookup on array `Resource2Groups`. This patch gives an average speedup of ~3-4% (observed on a release build when testing for target btver2). No functional change intended. llvm-svn: 353301
Diffstat (limited to 'lldb/packages/Python/lldbsuite/test/lang/cpp/scope/main.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud