about summary refs log tree commit diff
path: root/compiler/rustc_codegen_llvm/src/llvm_util.rs
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2021-10-02 13:36:27 +0000
committerbors <bors@rust-lang.org>2021-10-02 13:36:27 +0000
commitedebf77e0090195bf80c0d8cda821e1bf9d03053 (patch)
tree60939fe2b181727d17aef64d96edf9830b39caaa /compiler/rustc_codegen_llvm/src/llvm_util.rs
parentb27661eb33c74cb514dba059b47d86b6582ac1c2 (diff)
parent56fcf0725a164f16b9d7f1ff8fe2f3d6b4aab3db (diff)
downloadrust-edebf77e0090195bf80c0d8cda821e1bf9d03053.tar.gz
rust-edebf77e0090195bf80c0d8cda821e1bf9d03053.zip
Auto merge of #89408 - Mark-Simulacrum:fix-query-nondet, r=petrochenkov
Avoid nondeterminism in trimmed_def_paths

Previously this query depended on the global interning order of Symbols, which
meant that irrelevant changes could influence the query and cause
recompilations. This commit ensures that the return set is stable and will not
be affected by the global order by deterministically (in lexicographic order)
choosing a name to use if there are multiple names for a single DefId.

This should fix the cause of the [regressions] in #83343.

[regressions]: https://perf.rust-lang.org/compare.html?start=9620f3a84b079decfdc2e557be007580b097fe43&end=addb4da686a97da46159f0123cb6cdc2ce3d7fdb
Diffstat (limited to 'compiler/rustc_codegen_llvm/src/llvm_util.rs')
0 files changed, 0 insertions, 0 deletions