summaryrefslogtreecommitdiff
path: root/tools/llvm-xray
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
commit19d17b65bdb162384a1ba486c9091d042ee99724 (patch)
treeed9ba1adcb7a8191f7738042971c21a7be844299 /tools/llvm-xray
parent2fdc2378175b15a4d0616944cab597063f7d6ca7 (diff)
[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. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@300621 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'tools/llvm-xray')
0 files changed, 0 insertions, 0 deletions