aboutsummaryrefslogtreecommitdiff
path: root/lib/Sema/SemaCast.cpp
diff options
context:
space:
mode:
authorLang Hames <lhames@gmail.com>2013-02-11 23:44:11 +0000
committerLang Hames <lhames@gmail.com>2013-02-11 23:44:11 +0000
commit5310859d0dcec2f3efbeb155ae1cfee14bdd2836 (patch)
tree0b05d96abea6cea8a4cf305c262644ab17b43c5b /lib/Sema/SemaCast.cpp
parent6e8dfc7a6cbf6dec743aab4df7d55575c6945607 (diff)
When generating IR for default copy-constructors, copy-assignment operators,
move-constructors and move-assignment operators, use memcpy to copy adjacent POD members. Previously, classes with one or more Non-POD members would fall back on element-wise copies for all members, including POD members. This often generated a lot of IR. Without padding metadata, it wasn't often possible for the LLVM optimizers to turn the element-wise copies into a memcpy. This code hasn't yet received any serious tuning. I didn't see any serious regressions on a self-hosted clang build, or any of the nightly tests, but I think it's important to get this out in the wild to get more testing. Insights, feedback and comments welcome. Many thanks to David Blaikie, Richard Smith, and especially John McCall for their help and feedback on this work. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@174919 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Sema/SemaCast.cpp')
0 files changed, 0 insertions, 0 deletions