about summary refs log tree commit diff
path: root/compiler/rustc_codegen_llvm/src/attributes.rs
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2022-04-03 07:53:10 +0000
committerbors <bors@rust-lang.org>2022-04-03 07:53:10 +0000
commitec7b753ea91d8a5640388ea74fd231f91394ee9d (patch)
treef8623ef2d0b8ffe7471986f94057c91d25d8ffb1 /compiler/rustc_codegen_llvm/src/attributes.rs
parent133859d680ffe31072b80f518377fa0c487359d9 (diff)
parent297dde9b1ad0c28922fac5046f77c2629cebf662 (diff)
downloadrust-ec7b753ea91d8a5640388ea74fd231f91394ee9d.tar.gz
rust-ec7b753ea91d8a5640388ea74fd231f91394ee9d.zip
Auto merge of #85321 - cjgillot:mir-cycle, r=bjorn3
Use DefPathHash instead of HirId to break inlining cycles.

The `DefPathHash` is stable across incremental compilation sessions, so provides a total order on `LocalDefId`. Using it instead of `HirId` ensures the MIR inliner has the same behaviour for incremental and non-incremental compilation.

A downside is that the cycle tie break is not as predictable is with `HirId`.
Diffstat (limited to 'compiler/rustc_codegen_llvm/src/attributes.rs')
0 files changed, 0 insertions, 0 deletions