Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: rust-lang/rust
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 7d15cf2
Choose a base ref
...
head repository: rust-lang/rust
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: eec1b4b
Choose a head ref
  • 4 commits
  • 51 files changed
  • 1 contributor

Commits on Jun 17, 2024

  1. 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.
    scottmcm committed Jun 17, 2024
    Configuration menu
    Copy the full SHA
    7562d20 View commit details
    Browse the repository at this point in the history
  2. Replace NormalizeArrayLen with GVN

    GVN is actually on in release, and covers all the same things (or more), with `LowerSliceLen` changed to produce `PtrMetadata`.
    scottmcm committed Jun 17, 2024
    Configuration menu
    Copy the full SHA
    2908b3a View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    91212f3 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    eec1b4b View commit details
    Browse the repository at this point in the history
Loading