diff options
| author | bors <bors@rust-lang.org> | 2020-04-22 21:08:28 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2020-04-22 21:08:28 +0000 |
| commit | db9b05aeb52b77d1eb780ee005979b63d093c214 (patch) | |
| tree | 7f930a5a6d2a73c3822d99f364d770460d5e460b /src/test/codegen/src-hash-algorithm/src-hash-algorithm-sha1.rs | |
| parent | b2e36e6c2d229126b59e892c9147fbb68115d292 (diff) | |
| parent | 4e7469eaeaaa460828f0494de97b6ce4203a44a5 (diff) | |
| download | rust-db9b05aeb52b77d1eb780ee005979b63d093c214.tar.gz rust-db9b05aeb52b77d1eb780ee005979b63d093c214.zip | |
Auto merge of #71044 - ecstatic-morse:body-predecessor-cache, r=oli-obk
Remove `BodyAndCache` ...returning to the original approach using interior mutability within `Body`. This simplifies the API at the cost of some uncontended mutex locks when the parallel compiler is enabled. The current API requires you to either have a mutable reference to `Body` (`&mut BodyAndCache`), or to compute the predecessor graph ahead of time by creating a `ReadOnlyBodyAndCache`. This is not a good fit for, e.g., the dataflow framework, which 1. does not mutate the MIR 2. only sometimes needs the predecessor graph (for backward dataflow problems)
Diffstat (limited to 'src/test/codegen/src-hash-algorithm/src-hash-algorithm-sha1.rs')
0 files changed, 0 insertions, 0 deletions
