aboutsummaryrefslogtreecommitdiff
path: root/clang/unittests/Basic/FileManagerTest.cpp
diff options
context:
space:
mode:
authorAndrea Di Biagio <Andrea_DiBiagio@sn.scee.net>2018-11-30 17:15:52 +0000
committerAndrea Di Biagio <Andrea_DiBiagio@sn.scee.net>2018-11-30 17:15:52 +0000
commit7e695b97d793388113baa5c194e1f9512476c845 (patch)
tree543aef7ecd3e167b80db36923fec7a34f44f38d3 /clang/unittests/Basic/FileManagerTest.cpp
parente9870c0c9145a2b261054348c7979333b8ed6655 (diff)
downloadllvm-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