diff options
| author | Erik Desjardins <erikdesjardins@users.noreply.github.com> | 2021-10-01 22:07:22 -0400 |
|---|---|---|
| committer | Erik Desjardins <erikdesjardins@users.noreply.github.com> | 2021-10-01 22:07:22 -0400 |
| commit | eb4ba58572bfaec9a9ca843b368e05564d9b1cb0 (patch) | |
| tree | 33981148743e9c1efa776fa3b12ccaf84be0bde6 /compiler/rustc_codegen_llvm/src/back/write.rs | |
| parent | c02371c442f811878ab3a0f5a813402b6dfd45d2 (diff) | |
| download | rust-eb4ba58572bfaec9a9ca843b368e05564d9b1cb0.tar.gz rust-eb4ba58572bfaec9a9ca843b368e05564d9b1cb0.zip | |
perf: only check for rustc_trivial_field_reads attribute on traits
The checks removed here caused a small perf regression: https://github.com/rust-lang/rust/pull/88824#issuecomment-932664761 Since the attribute is currently only applied to traits, I don't think it's worth keeping the additional checks for now. If/when we decide to apply the attribute somewhere else, we can (partially) revert this and evaluate if the perf impact is acceptable.
Diffstat (limited to 'compiler/rustc_codegen_llvm/src/back/write.rs')
0 files changed, 0 insertions, 0 deletions
