aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Target/WebAssembly/WebAssemblyFixFunctionBitcasts.cpp
diff options
context:
space:
mode:
authorPaul Kirth <paulkirth@google.com>2025-11-04 13:21:04 -0800
committerGitHub <noreply@github.com>2025-11-04 13:21:04 -0800
commit1c85981e3770bfcc8f4c11417be0cfa7de543a15 (patch)
tree0fb0c83377745bc274352c71f00427f5709a5f37 /llvm/lib/Target/WebAssembly/WebAssemblyFixFunctionBitcasts.cpp
parent6e2dcdb17c0ef4eff239a08772b194e2009193ec (diff)
downloadllvm-1c85981e3770bfcc8f4c11417be0cfa7de543a15.zip
llvm-1c85981e3770bfcc8f4c11417be0cfa7de543a15.tar.gz
llvm-1c85981e3770bfcc8f4c11417be0cfa7de543a15.tar.bz2
[llvm][mustache] Avoid redundant saves in accessor splitting (#159197)
The splitMustacheString function was saving StringRefs that were already backed by an arena-allocated string. This was unnecessary work. This change removes the redundant Ctx.Saver.save() call. This optimization provides a small but measurable performance improvement on top of the single-pass tokenizer, most notably reducing branch misses. Metric | Baseline | Optimized | Change -------------- | -------- | --------- | ------- Time (ms) | 35.77 | 35.57 | -0.56% Cycles | 35.16M | 34.91M | -0.71% Instructions | 85.77M | 85.54M | -0.27% Branch Misses | 113.9K | 111.9K | -1.76% Cache Misses | 237.7K | 242.1K | +1.85%
Diffstat (limited to 'llvm/lib/Target/WebAssembly/WebAssemblyFixFunctionBitcasts.cpp')
0 files changed, 0 insertions, 0 deletions