rust/compiler/rustc_codegen_ssa
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
..
src More GVN for PtrMetadata 2024-06-20 22:16:59 -07:00
Cargo.toml Make SSA aggregates without needing an alloca 2024-05-08 20:38:04 -07:00
README.md
messages.ftl emit an error if we can't find a path to the self-contained linker 2024-05-23 15:47:35 +00:00

README.md

Please read the rustc-dev-guide chapter on Backend Agnostic Codegen.