]> granicus.if.org Git - clang/commit
CodeGen: Copy tail padding when we're not dealing with a trivial copy assign or move...
authorBenjamin Kramer <benny.kra@googlemail.com>
Sun, 30 Sep 2012 12:43:37 +0000 (12:43 +0000)
committerBenjamin Kramer <benny.kra@googlemail.com>
Sun, 30 Sep 2012 12:43:37 +0000 (12:43 +0000)
commit6cacae8bf9597b8124cd40aedc189c04484e1990
treeb20a92a4aa5ad64f3ea61a4d87113972fae44363
parent615c3dda26323dc1b07333e060a64c2471b74d9e
CodeGen: Copy tail padding when we're not dealing with a trivial copy assign or move assign operator.

This fixes a regression from r162254, the optimizer has problems reasoning
about the smaller memcpy as it's often not safe to widen a store but making it
smaller is.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@164917 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/CGExprAgg.cpp
lib/CodeGen/CGExprCXX.cpp
lib/CodeGen/CodeGenFunction.h
test/CodeGenCXX/assign-construct-memcpy.cpp [new file with mode: 0644]