about summary refs log tree commit diff
path: root/compiler/rustc_codegen_llvm/src/errors.rs
diff options
context:
space:
mode:
authorScott McMurray <scottmcm@users.noreply.github.com>2024-06-19 22:14:31 -0700
committerScott McMurray <scottmcm@users.noreply.github.com>2024-06-20 22:16:59 -0700
commit4a7b6c0e6ce760964284d50705eefdc8dea7d0c3 (patch)
tree6b2d232f7fa9b59a5ca7b8999bbf66f2650f447e /compiler/rustc_codegen_llvm/src/errors.rs
parent31d8696ac943056d6902869fbb9f4297a1fce814 (diff)
downloadrust-4a7b6c0e6ce760964284d50705eefdc8dea7d0c3.tar.gz
rust-4a7b6c0e6ce760964284d50705eefdc8dea7d0c3.zip
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
Diffstat (limited to 'compiler/rustc_codegen_llvm/src/errors.rs')
0 files changed, 0 insertions, 0 deletions