1
Fork 0
rust/compiler/rustc_codegen_ssa/src
Scott McMurray 4a7b6c0e6c More GVN for PtrMetadata
`PtrMetadata` doesn't care about `*const`/`*mut`/`&`/`&mut`, so GVN away those casts in its argument.

This includes updating MIR to allow calling PtrMetadata on references too, not just raw pointers.  That means that `[T]::len` can be just `_0 = PtrMetadata(_1)`, for example.

# Conflicts:
#	tests/mir-opt/pre-codegen/slice_index.slice_get_unchecked_mut_range.PreCodegen.after.panic-abort.mir
#	tests/mir-opt/pre-codegen/slice_index.slice_get_unchecked_mut_range.PreCodegen.after.panic-unwind.mir
2024-06-20 22:16:59 -07:00
..
back Rollup merge of #126594 - zetanumbers:fix-cross-crate-async-drop-glue, r=oli-obk 2024-06-19 09:52:01 +02:00
debuginfo Add Ty to ConstKind::Value 2024-06-05 22:25:41 +01:00
mir More GVN for PtrMetadata 2024-06-20 22:16:59 -07:00
traits Use a dedicated type instead of a reference for the diagnostic context 2024-06-18 15:42:11 +00:00
assert_module_sources.rs Remove #[macro_use] extern crate tracing from rustc_codegen_ssa. 2024-05-23 18:02:40 +10:00
base.rs Only compute vtable information during codegen 2024-06-14 20:35:45 -04:00
codegen_attrs.rs Allow static mut definitions with #[linkage] 2024-06-03 10:45:16 +00:00
common.rs ScalarInt: size mismatches are a bug, do not delay the panic 2024-06-10 13:43:16 +02:00
errors.rs Use a dedicated type instead of a reference for the diagnostic context 2024-06-18 15:42:11 +00:00
lib.rs Use tidy to sort crate attributes for all compiler crates. 2024-06-12 15:49:10 +10:00
meth.rs Omit non-needs_drop drop_in_place in vtables 2024-05-27 16:26:56 -04:00
mono_item.rs Remove #[macro_use] extern crate tracing from rustc_codegen_ssa. 2024-05-23 18:02:40 +10:00
size_of_val.rs Remove #[macro_use] extern crate tracing from rustc_codegen_ssa. 2024-05-23 18:02:40 +10:00
target_features.rs Remove extern crate rustc_middle from numerous crates. 2024-04-29 14:50:45 +10:00