diff options
| author | Justin Lebar <jlebar@google.com> | 2016-07-17 18:19:19 +0000 |
|---|---|---|
| committer | Justin Lebar <jlebar@google.com> | 2016-07-17 18:19:19 +0000 |
| commit | f2d0066af751cf097a17e970e825475cb06be5bf (patch) | |
| tree | 0610aa109d566b71d42175f7230f5dbb5771ad06 /libcxx/test/std/algorithms | |
| parent | b17269da754bfe8fba0e9342a4460a893f7c1259 (diff) | |
| download | bcm5719-llvm-f2d0066af751cf097a17e970e825475cb06be5bf.tar.gz bcm5719-llvm-f2d0066af751cf097a17e970e825475cb06be5bf.zip | |
Use a faster implementation of maxUIntN.
Summary:
On x86-64 with clang 3.8, before:
mov edx, 1
mov cl, dil
shl rdx, cl
cmp rdi, 64
mov rax, -1
cmovne rax, rdx
ret
after:
mov ecx, 64
sub ecx, edi
mov rax, -1
shr rax, cl
ret
Reviewers: rnk
Subscribers: dylanmckay, mkuper, llvm-commits
Differential Revision: https://reviews.llvm.org/D22440
llvm-svn: 275718
Diffstat (limited to 'libcxx/test/std/algorithms')
0 files changed, 0 insertions, 0 deletions

