summaryrefslogtreecommitdiffstats
path: root/libcxx/test/std/algorithms/alg.modifying.operations/alg.remove/remove.pass.cpp
diff options
context:
space:
mode:
authorCraig Topper <craig.topper@gmail.com>2017-04-18 23:02:39 +0000
committerCraig Topper <craig.topper@gmail.com>2017-04-18 23:02:39 +0000
commit88c64f324fa4659954f32516a211cf5a5764a04a (patch)
treec5aa8427249106b458af3d7a1b774153ad8ea87c /libcxx/test/std/algorithms/alg.modifying.operations/alg.remove/remove.pass.cpp
parent6a470bcb6d0e599a113249b49e3164a383985412 (diff)
downloadbcm5719-llvm-88c64f324fa4659954f32516a211cf5a5764a04a.tar.gz
bcm5719-llvm-88c64f324fa4659954f32516a211cf5a5764a04a.zip
[ConstantRange] Optimize APInt creation in getSignedMax/getSignedMin.
We were creating an APInt at the top of these methods that isn't always returned. For ranges wider than 64-bits this results in an allocation and deallocation when its not used. In getSignedMax we were creating Upper-1 to use in a compare and then creating it again for a return value. The compiler is unable to determine that these can be shared. So help it out and create the Upper-1 in a temporary that can be reused. This provides a little compile time improvement. llvm-svn: 300621
Diffstat (limited to 'libcxx/test/std/algorithms/alg.modifying.operations/alg.remove/remove.pass.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud