about summary refs log tree commit diff
path: root/compiler/rustc_llvm/llvm-wrapper/PassWrapper.cpp
diff options
context:
space:
mode:
authorChris Denton <chris@chrisdenton.dev>2025-04-28 01:58:50 +0000
committerGitHub <noreply@github.com>2025-04-28 01:58:50 +0000
commit5633102807c744822204ea75573b5e38eaf1fe27 (patch)
treedae7af9155560d1d62d742413351f1d5190fa4ce /compiler/rustc_llvm/llvm-wrapper/PassWrapper.cpp
parentc439543ae83e327d4c0ffa1c1b3013c1e2245749 (diff)
parent6f5698c3683f0b158399c0c22c88234dfb695c29 (diff)
downloadrust-5633102807c744822204ea75573b5e38eaf1fe27.tar.gz
rust-5633102807c744822204ea75573b5e38eaf1fe27.zip
Rollup merge of #140345 - DaniPopes:get-def-path, r=Urgau
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