about summary refs log tree commit diff
path: root/compiler/rustc_llvm/llvm-wrapper/PassWrapper.cpp
diff options
context:
space:
mode:
authorDaniPopes <57450786+DaniPopes@users.noreply.github.com>2025-04-26 22:06:42 +0200
committerDaniPopes <57450786+DaniPopes@users.noreply.github.com>2025-04-26 22:06:44 +0200
commit6f5698c3683f0b158399c0c22c88234dfb695c29 (patch)
tree41dd6b28c649bcabb61d9636e764ae241f8307ec /compiler/rustc_llvm/llvm-wrapper/PassWrapper.cpp
parent10fa3c449f6b1613b352a6cbf78d3d91fd9a1d81 (diff)
downloadrust-6f5698c3683f0b158399c0c22c88234dfb695c29.tar.gz
rust-6f5698c3683f0b158399c0c22c88234dfb695c29.zip
Avoid re-interning in `LateContext::get_def_path`
The def path printer in `get_def_path` essentially calls
`Symbol::intern(&symbol.to_string())` for simple symbols in a path.
This accounts for ~30% of the runtime of get_def_path.

We can avoid this by simply appending the symbol directly when available.
Diffstat (limited to 'compiler/rustc_llvm/llvm-wrapper/PassWrapper.cpp')
0 files changed, 0 insertions, 0 deletions