aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Bitcode/Reader/BitcodeReader.cpp
diff options
context:
space:
mode:
authorOwen Anderson <resistor@mac.com>2024-05-01 01:19:46 -0600
committerGitHub <noreply@github.com>2024-05-01 01:19:46 -0600
commitcd46c2c1ba0481e2194231f0f2c2ceeb0810bb79 (patch)
tree5bf959440675dc36c721b91ec2bc9f3c54c7ddb9 /llvm/lib/Bitcode/Reader/BitcodeReader.cpp
parentd392520c645b653cd9c2ce944958fb115c4ba506 (diff)
downloadllvm-cd46c2c1ba0481e2194231f0f2c2ceeb0810bb79.zip
llvm-cd46c2c1ba0481e2194231f0f2c2ceeb0810bb79.tar.gz
llvm-cd46c2c1ba0481e2194231f0f2c2ceeb0810bb79.tar.bz2
Tweak BumpPtrAllocator to benefit the hot path (#90571)
This takes the form of three consecutive but related changes: - Mark the fast path of BumpPtrAllocator as likely-taken. - Move the slow path of BumpPtrAllocator to a separate function. - Mark the slow path of BumpPtrAllocator as noinline. Overall, this saves geomean 0.4% userspace instructions on CTMark -O3, and 0.98% on CTMark -O0 -g. http://llvm-compile-time-tracker.com/compare.php?from=e1622e189e8c0ef457bfac528f90a7a930d9aad2&to=9eb53a4ed3af4a55e769ae1dd22d034b63d046e3&stat=instructions%3Au
Diffstat (limited to 'llvm/lib/Bitcode/Reader/BitcodeReader.cpp')
0 files changed, 0 insertions, 0 deletions