diff options
| author | Chris Denton <chris@chrisdenton.dev> | 2025-04-28 01:58:50 +0000 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-04-28 01:58:50 +0000 |
| commit | 5633102807c744822204ea75573b5e38eaf1fe27 (patch) | |
| tree | dae7af9155560d1d62d742413351f1d5190fa4ce /compiler/rustc_llvm/llvm-wrapper/PassWrapper.cpp | |
| parent | c439543ae83e327d4c0ffa1c1b3013c1e2245749 (diff) | |
| parent | 6f5698c3683f0b158399c0c22c88234dfb695c29 (diff) | |
| download | rust-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
