summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/Sparc/SparcMachineFunctionInfo.cpp
diff options
context:
space:
mode:
authorKostya Kortchinsky <kostyak@google.com>2018-05-16 18:12:31 +0000
committerKostya Kortchinsky <kostyak@google.com>2018-05-16 18:12:31 +0000
commite5c9e9f0bdea12a512dc3977950a7c97dbf979a4 (patch)
treee826cf7d1a0c99f8ce376ae4a449874e4998fee9 /llvm/lib/Target/Sparc/SparcMachineFunctionInfo.cpp
parent332bbb0fea827139879ae09f78406ace3d25a94a (diff)
downloadbcm5719-llvm-e5c9e9f0bdea12a512dc3977950a7c97dbf979a4.tar.gz
bcm5719-llvm-e5c9e9f0bdea12a512dc3977950a7c97dbf979a4.zip
[scudo] Quarantine optimization
Summary: It turns out that the previous code construct was not optimizing the allocation and deallocation of batches. The class id was read as a class member (even though a precomputed one) and nothing else was optimized. By changing the construct this way, the compiler actually optimizes most of the allocation and deallocation away to only work with a single class id, which not only saves some CPU but also some code footprint. Reviewers: alekseyshl, dvyukov Reviewed By: dvyukov Subscribers: dvyukov, delcypher, llvm-commits, #sanitizers Differential Revision: https://reviews.llvm.org/D46961 llvm-svn: 332502
Diffstat (limited to 'llvm/lib/Target/Sparc/SparcMachineFunctionInfo.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud