diff options
author | George Rimar <grimar@accesssoftek.com> | 2018-06-26 08:50:09 +0000 |
---|---|---|
committer | George Rimar <grimar@accesssoftek.com> | 2018-06-26 08:50:09 +0000 |
commit | 8f53b6d71ed94c7c45b226bbc9d76de950cf666f (patch) | |
tree | ff0f30843a6f03c2bdd00f445b15ec2713684a68 /llvm/lib/Support/APInt.cpp | |
parent | 4860b9844375c608a465f2c25c77d013d5ce570e (diff) | |
download | llvm-8f53b6d71ed94c7c45b226bbc9d76de950cf666f.zip llvm-8f53b6d71ed94c7c45b226bbc9d76de950cf666f.tar.gz llvm-8f53b6d71ed94c7c45b226bbc9d76de950cf666f.tar.bz2 |
[ELF] - Change the way of sorting local symbols.
rLLD329787 added the stable sorting to SymbolTableBaseSection::postThunkContents.
I profiled the Mozilla (response-O0.txt) from lld-speed-test package and found
std::stable_sort is showing up in profile results and consuming the 3.1% of the total
CPU time in the RelWithDebug build. Total time of postThunkContents is 3.54%, 238ms.
This change reduces postTimeContents time to 50ms, making it to take 0.73% of Total CPU time.
So, instead of sorting the local part I suggest to just rebuild it.
That is what this patch does.
Differential revision: https://reviews.llvm.org/D45519
llvm-svn: 335583
Diffstat (limited to 'llvm/lib/Support/APInt.cpp')
0 files changed, 0 insertions, 0 deletions