When deciding whether to convert an array construction loop into a memcpy, look
authorRichard Smith <richard-llvm@metafoo.co.uk>
Wed, 7 Nov 2012 23:56:21 +0000 (23:56 +0000)
committerRichard Smith <richard-llvm@metafoo.co.uk>
Wed, 7 Nov 2012 23:56:21 +0000 (23:56 +0000)
commit993f25a2f9a852509c61abf1c167b6421890bb39
tree4ed88215b33a7de89c7f852b0e65c76ff7e1f7b3
parent9fcad0947c984539f6284665faa3c5dffc4fb789
When deciding whether to convert an array construction loop into a memcpy, look
at whether the *selected* constructor would be trivial rather than considering
whether the array's element type has *any* non-trivial constructors of the
relevant kind.

llvm-svn: 167562
clang/lib/CodeGen/CGClass.cpp
clang/test/CodeGenCXX/implicit-copy-constructor.cpp