summaryrefslogtreecommitdiffstats
path: root/libcxx/test/std/algorithms/alg.modifying.operations/alg.unique/unique_copy.pass.cpp
diff options
context:
space:
mode:
authorFlorian Hahn <florian.hahn@arm.com>2018-01-20 19:52:16 +0000
committerFlorian Hahn <florian.hahn@arm.com>2018-01-20 19:52:16 +0000
commit52fa0e9300892bfe982b948136c91c512170200c (patch)
tree4fcca01aa1491c9250f1436c20cabfd523735579 /libcxx/test/std/algorithms/alg.modifying.operations/alg.unique/unique_copy.pass.cpp
parent7fddf2bfeffcfa4de7b53746babe44dab94bb2ac (diff)
downloadbcm5719-llvm-52fa0e9300892bfe982b948136c91c512170200c.tar.gz
bcm5719-llvm-52fa0e9300892bfe982b948136c91c512170200c.zip
[ValueLattice] Use union to shave off ptr size bytes from elements.
By using a union for Constant* and ConstantRange we can shave off ptr size bytes off lattice elements. On 64 bit systems, it brings down the size to 40 bytes from 48 bytes. Initialization of Range happens on-demand using placement new, if the state changes to constantrange from non-constantrange. Similarly, the Range object is destroyed if the state changes from constantrange to non-constantrange. Reviewers: reames, anna, davide Reviewed By: reames, davide Differential Revision: https://reviews.llvm.org/D41903 llvm-svn: 323049
Diffstat (limited to 'libcxx/test/std/algorithms/alg.modifying.operations/alg.unique/unique_copy.pass.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud