diff options
| author | Stepan Dyatkovskiy <stpworld@narod.ru> | 2014-05-07 09:05:10 +0000 |
|---|---|---|
| committer | Stepan Dyatkovskiy <stpworld@narod.ru> | 2014-05-07 09:05:10 +0000 |
| commit | cb3a147870ff5f9374792aeedf09a5ff73e632ec (patch) | |
| tree | e031b1dbcbeb34df6b368a61c5b9573e64dda452 /lib/Bitcode | |
| parent | 88ab50c23791442f13c72e331f0505f9fbb5046a (diff) | |
| download | llvm-cb3a147870ff5f9374792aeedf09a5ff73e632ec.tar.gz llvm-cb3a147870ff5f9374792aeedf09a5ff73e632ec.tar.bz2 llvm-cb3a147870ff5f9374792aeedf09a5ff73e632ec.tar.xz | |
Second patch of patch series that improves MergeFunctions performance time from O(N*N) to
O(N*log(N)). The idea is to introduce total ordering among functions set.
It allows to build binary tree and perform function look-up procedure in O(log(N)) time.
This patch description:
Introduced total ordering among constants implemented in cmpConstants method.
Method performs lexicographical comparison between constants represented as
hypothetical numbers of next format:
<bitcastability-trait><raw-bit-contents>
Please, read cmpConstants declaration comments for more details.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@208173 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Bitcode')
0 files changed, 0 insertions, 0 deletions
