commit | 3a446a397700c6643a835bbfaf311e3326280492 | [log] [tgz] |
---|---|---|
author | Andrea Di Biagio <Andrea_DiBiagio@sn.scee.net> | Fri Nov 30 17:15:52 2018 +0000 |
committer | Andrea Di Biagio <Andrea_DiBiagio@sn.scee.net> | Fri Nov 30 17:15:52 2018 +0000 |
tree | 7cf925f9aa362a73a3529b48933ae64a194595dc | |
parent | f170fd931e371f7735db9df9c8f03f0fb9f0302b [diff] |
[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%. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@348007 91177308-0d34-0410-b5e6-96231b3b80d8