summaryrefslogtreecommitdiffstats
path: root/lldb/packages/Python/lldbsuite/test/python_api/thread/TestThreadAPI.py
diff options
context:
space:
mode:
authorAndrea Di Biagio <Andrea_DiBiagio@sn.scee.net>2018-08-02 11:12:35 +0000
committerAndrea Di Biagio <Andrea_DiBiagio@sn.scee.net>2018-08-02 11:12:35 +0000
commitc2619a2f3d89d0273005f6173ab8073ef33c81bb (patch)
tree9718c9984ff70543c07c426dda50f1b7cf8a03f2 /lldb/packages/Python/lldbsuite/test/python_api/thread/TestThreadAPI.py
parent171f3f46c869c0ec898bf4c2a33d10707fc03a9f (diff)
downloadbcm5719-llvm-c2619a2f3d89d0273005f6173ab8073ef33c81bb.tar.gz
bcm5719-llvm-c2619a2f3d89d0273005f6173ab8073ef33c81bb.zip
[llvm-mca] Use a vector to store ResourceState objects in the ResourceManager.
We don't need to use a map to store ResourceState objects. The number of processor resources is known statically from the scheduling model. We can therefore use a vector, and reserve a slot for each processor resource that we want to simulate. Every time the ResourceManager queries the ResourceState vector, the index to the vector of ResourceState objects can be easily computed from the processor resource mask. This drastically reduces the time complexity of method ResourceManager::use() and method ResourceManager::release(). This patch gives an average speedup of 12%. llvm-svn: 338702
Diffstat (limited to 'lldb/packages/Python/lldbsuite/test/python_api/thread/TestThreadAPI.py')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud