Skip to content

Rc: Add assumptions that the pointer is non-null#21894

Merged
bors merged 1 commit into
rust-lang:masterfrom
dotdash:assume_rc
Feb 5, 2015
Merged

Rc: Add assumptions that the pointer is non-null#21894
bors merged 1 commit into
rust-lang:masterfrom
dotdash:assume_rc

Conversation

@dotdash

@dotdash dotdash commented Feb 3, 2015

Copy link
Copy Markdown
Contributor

This is half of what @Aatch implemented in #21418. The non-null assumption is later canonicalized to !nonnull metadata and doesn't cause any slowdowns (in fact the build is slightly faster with this change). I left out the other half of #21418 because that still causes a ~16% increase in compile times (30m -> 35m).

Since the snapshot compiler is still using an older LLVM version, omit
the call in stage0, because compile times explode otherwise.
@rust-highfive

Copy link
Copy Markdown
Contributor

r? @brson

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

@alexcrichton

Copy link
Copy Markdown
Member

@bors: r+ 40b6e34 rollup

@alexcrichton alexcrichton assigned alexcrichton and unassigned brson Feb 3, 2015
@alexcrichton

Copy link
Copy Markdown
Member

@bors: rollup-

@bors

bors commented Feb 4, 2015

Copy link
Copy Markdown
Collaborator

⌛ Testing commit 40b6e34 with merge 7643521...

@bors

bors commented Feb 5, 2015

Copy link
Copy Markdown
Collaborator

💔 Test failed - auto-linux-32-opt

@dotdash

dotdash commented Feb 5, 2015

Copy link
Copy Markdown
Contributor Author

I can't reproduce this error, any hints?

@alexcrichton

Copy link
Copy Markdown
Member

Let's see if retrying with bors gives a hint!

@bors: retry

bors added a commit that referenced this pull request Feb 5, 2015
This is half of what @Aatch implemented in #21418. The non-null assumption is later canonicalized to !nonnull metadata and doesn't cause any slowdowns (in fact the build is slightly faster with this change). I left out the other half of #21418 because that still causes a ~16% increase in compile times (30m -> 35m).
@bors

bors commented Feb 5, 2015

Copy link
Copy Markdown
Collaborator

⌛ Testing commit 40b6e34 with merge 99f6206...

@bors

bors commented Feb 5, 2015

Copy link
Copy Markdown
Collaborator

@bors bors merged commit 40b6e34 into rust-lang:master Feb 5, 2015
@dotdash dotdash deleted the assume_rc branch March 1, 2015 19:21
lnicola added a commit to lnicola/rust that referenced this pull request Mar 30, 2026
lnicola added a commit to lnicola/rust that referenced this pull request Apr 6, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants