summaryrefslogtreecommitdiffstats
path: root/clang/lib/CodeGen/CodeGenFunction.cpp
diff options
context:
space:
mode:
authorCraig Topper <craig.topper@gmail.com>2017-03-06 06:30:47 +0000
committerCraig Topper <craig.topper@gmail.com>2017-03-06 06:30:47 +0000
commita97f927fcb35d6481f50a5900faa6d22c68dcf1c (patch)
treed5a2c510fefd38e3636b3e50d54eda8f1f4784cb /clang/lib/CodeGen/CodeGenFunction.cpp
parented00ea084e4013b2e6f6dc3c0fa7d8a20cbdc9a0 (diff)
downloadbcm5719-llvm-a97f927fcb35d6481f50a5900faa6d22c68dcf1c.tar.gz
bcm5719-llvm-a97f927fcb35d6481f50a5900faa6d22c68dcf1c.zip
[APInt] Move operator~ out of line to make it better able to reused memory allocation from temporary objects
Summary: This makes operator~ take the APInt by value so if it came from a temporary APInt the move constructor will get invoked and it will be able to reuse the memory allocation from the temporary. This is similar to what was already done for 2s complement negation. Reviewers: hans, davide, RKSimon Reviewed By: davide Subscribers: llvm-commits Differential Revision: https://reviews.llvm.org/D30614 llvm-svn: 296997
Diffstat (limited to 'clang/lib/CodeGen/CodeGenFunction.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud