diff options
author | Andrea Di Biagio <Andrea_DiBiagio@sn.scee.net> | 2018-11-30 17:15:52 +0000 |
---|---|---|
committer | Andrea Di Biagio <Andrea_DiBiagio@sn.scee.net> | 2018-11-30 17:15:52 +0000 |
commit | 7e695b97d793388113baa5c194e1f9512476c845 (patch) | |
tree | 543aef7ecd3e167b80db36923fec7a34f44f38d3 /clang/unittests/Basic/FileManagerTest.cpp | |
parent | e9870c0c9145a2b261054348c7979333b8ed6655 (diff) | |
download | llvm-7e695b97d793388113baa5c194e1f9512476c845.zip llvm-7e695b97d793388113baa5c194e1f9512476c845.tar.gz llvm-7e695b97d793388113baa5c194e1f9512476c845.tar.bz2 |
[llvm-mca] Speedup the default resource selection strategy.
This patch removes a (potentially) slow while loop in
DefaultResourceStrategy::select(). A better (and faster) approach is to do some
bit manipulation in order to shrink the range of candidate resources.
On a release build, this change gives an average speedup of ~10%.
llvm-svn: 348007
Diffstat (limited to 'clang/unittests/Basic/FileManagerTest.cpp')
0 files changed, 0 insertions, 0 deletions