aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Target/WebAssembly/WebAssemblyRegStackify.cpp
diff options
context:
space:
mode:
authorVolodymyr Sapsai <vsapsai@apple.com>2019-01-08 00:03:16 +0000
committerVolodymyr Sapsai <vsapsai@apple.com>2019-01-08 00:03:16 +0000
commitfb0e1908d4e94d83da2996a6f3fe188cc72c00c2 (patch)
tree4ee17a7c08b6afa5211fc719f3cd47f982779804 /llvm/lib/Target/WebAssembly/WebAssemblyRegStackify.cpp
parent91b43adb69d91faa1546eb9df0ead7b550a855f2 (diff)
downloadllvm-fb0e1908d4e94d83da2996a6f3fe188cc72c00c2.zip
llvm-fb0e1908d4e94d83da2996a6f3fe188cc72c00c2.tar.gz
llvm-fb0e1908d4e94d83da2996a6f3fe188cc72c00c2.tar.bz2
[libcxx] Optimize vectors construction of trivial types from an iterator range with const-ness mismatch.
We already have a specialization that will use memcpy for construction of trivial types from an iterator range like std::vector<int>(int *, int *); But if we have const-ness mismatch like std::vector<int>(const int *, const int *); we would use a slow path that copies each element individually. This change enables the optimal specialization for const-ness mismatch. Fixes PR37574. Contributions to the patch are made by Arthur O'Dwyer, Louis Dionne. rdar://problem/40485845 Reviewers: mclow.lists, EricWF, ldionne, scanon Reviewed By: ldionne Subscribers: christof, ldionne, howard.hinnant, cfe-commits Differential Revision: https://reviews.llvm.org/D48342 llvm-svn: 350583
Diffstat (limited to 'llvm/lib/Target/WebAssembly/WebAssemblyRegStackify.cpp')
0 files changed, 0 insertions, 0 deletions