Skip to content

Conversation

scottmcm
Copy link
Member

A small opportunity I noticed in passing.

Not super exciting on its own, but opens the door for a const propagation pass that could completely remove const bounds checks from arrays at MIR time, for example.

@rust-highfive
Copy link
Contributor

r? @nikomatsakis

(rust_highfive has picked a reviewer for you, use r? to override)

@arielb1
Copy link
Contributor

arielb1 commented Nov 25, 2017

@bors r+ rollup

@bors
Copy link
Collaborator

bors commented Nov 25, 2017

📌 Commit 62391c8 has been approved by arielb1

@kennytm kennytm added the S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. label Nov 25, 2017
kennytm added a commit to kennytm/rust that referenced this pull request Nov 25, 2017
InstCombine Len([_; N]) => const N in MIR

A small opportunity I noticed in passing.

Not super exciting on its own, but opens the door for a const propagation pass that could completely remove const bounds checks from arrays at MIR time, for example.
kennytm added a commit to kennytm/rust that referenced this pull request Nov 26, 2017
InstCombine Len([_; N]) => const N in MIR

A small opportunity I noticed in passing.

Not super exciting on its own, but opens the door for a const propagation pass that could completely remove const bounds checks from arrays at MIR time, for example.
bors added a commit that referenced this pull request Nov 26, 2017
Rollup of 7 pull requests

- Successful merges: #46201, #46224, #46234, #46252, #46259, #46264, #46269
- Failed merges:
@bors bors merged commit 62391c8 into rust-lang:master Nov 26, 2017
@scottmcm scottmcm deleted the mir-array-len branch November 27, 2017 00:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants