]> granicus.if.org Git - clang/commit
Assign APValues by swapping from a temporary. Removes a bunch of unnecessary
authorRichard Smith <richard-llvm@metafoo.co.uk>
Sat, 10 Mar 2012 00:28:11 +0000 (00:28 +0000)
committerRichard Smith <richard-llvm@metafoo.co.uk>
Sat, 10 Mar 2012 00:28:11 +0000 (00:28 +0000)
commit0069b84c2aa7cc39263e85997b7cb1ed0b132ccd
tree0a1829e841beb468d9a25fc474a8b9b5b662be56
parent97c1fd651c24638a4989b4e1f8eb2e629c2073d1
Assign APValues by swapping from a temporary. Removes a bunch of unnecessary
copy-construction, which Daniel Dunbar reports as giving a 0.75% speedup on
403.gcc/combine.c. The performance differences on my constexpr torture tests
are below the noise floor.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@152455 91177308-0d34-0410-b5e6-96231b3b80d8
include/clang/AST/APValue.h
lib/AST/APValue.cpp
lib/AST/ExprConstant.cpp