rust/compiler/rustc_codegen_ssa/src
bors 4a7fb971c9 Auto merge of #91569 - erikdesjardins:vt-align, r=nikic
Attach range metadata to alignment loads from vtables

...because alignment is always nonzero[0].

This helps eliminate redundant runtime alignment checks, when a DST
is a field of a struct whose remaining fields have alignment 1.

Fixes #91438.

---
[0]:

The [reference](https://doc.rust-lang.org/reference/type-layout.html) says that alignment must be at least 1.

And in practice, the alignment field for all vtables is generated here: 772d51f887/compiler/rustc_middle/src/ty/vtable.rs (L68-L90) and is nonzero because [`Align::bytes()`](772d51f887/compiler/rustc_target/src/abi/mod.rs (L547-L549)) is always nonzero.
2021-12-13 04:29:20 +00:00
..
back Remove redundant [..]s 2021-12-09 00:01:29 +01:00
coverageinfo Update CoverageMappingFormat Support to Version6 2021-11-23 15:49:03 -08:00
debuginfo use matches!() macro in more places 2021-11-06 16:13:14 +01:00
mir LLVM codgen support for unwinding inline assembly 2021-12-03 23:51:49 +01:00
traits Auto merge of #91604 - nikic:section-flags, r=nagisa 2021-12-08 14:58:48 +00:00
base.rs Use object crate for .rustc metadata generation 2021-12-07 09:39:05 +01:00
common.rs Remove redundant [..]s 2021-12-09 00:01:29 +01:00
glue.rs Attach range metadata to alignment loads from vtables 2021-12-05 16:07:27 -05:00
lib.rs Revert "Add rustc lint, warning when iterating over hashmaps" 2021-10-28 11:01:42 -04:00
meth.rs Auto merge of #89597 - michaelwoerister:improve-vtable-debuginfo, r=wesleywiser 2021-10-11 04:31:47 +00:00
mono_item.rs rustc_target: move LayoutOf to ty::layout. 2021-09-02 01:17:14 +03:00
target_features.rs asm: Allow using r9 (ARM) and x18 (AArch64) if they are not reserved by 2021-12-10 00:51:39 +00:00