Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Miri refactor: Final round #53779

Merged
merged 7 commits into from
Aug 31, 2018
Merged

Miri refactor: Final round #53779

merged 7 commits into from
Aug 31, 2018

Conversation

RalfJung
Copy link
Member

Tying up some loose ends that I noticed in the previous PRs -- and finally getting argument passing into a shape where @eddyb says it is "okay", which is a big improvement over the previous verdict that I cannot quote in public. ;)

Also move a bunch of useful helpers to construct Scalar from miri to here.

Cc @eddyb
r? @oli-obk

@rust-highfive rust-highfive added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label Aug 29, 2018
@oli-obk
Copy link
Contributor

oli-obk commented Aug 29, 2018

@bors r+

@bors
Copy link
Contributor

bors commented Aug 29, 2018

📌 Commit b06a8db has been approved by oli-obk

@bors bors added S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. and removed S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. labels Aug 29, 2018
@RalfJung RalfJung mentioned this pull request Aug 30, 2018
@oli-obk
Copy link
Contributor

oli-obk commented Aug 30, 2018

@bors r+

@bors
Copy link
Contributor

bors commented Aug 30, 2018

📌 Commit 97d693a has been approved by oli-obk

@pietroalbini
Copy link
Member

@bors p=21 (rollup fairness)

@bors
Copy link
Contributor

bors commented Aug 31, 2018

⌛ Testing commit 97d693a with merge 8adc69a...

bors added a commit that referenced this pull request Aug 31, 2018
Miri refactor: Final round

Tying up some loose ends that I noticed in the previous PRs -- and finally getting argument passing into a shape where @eddyb says it is "okay", which is a big improvement over the previous verdict that I cannot quote in public. ;)

Also move a bunch of useful helpers to construct `Scalar` from miri to here.

Cc @eddyb
r? @oli-obk
@bors
Copy link
Contributor

bors commented Aug 31, 2018

☀️ Test successful - status-appveyor, status-travis
Approved by: oli-obk
Pushing 8adc69a to master...

@Eh2406
Copy link
Contributor

Eh2406 commented Aug 31, 2018

This is a small 5% loss for perf

@RalfJung RalfJung deleted the miri-refactor branch September 1, 2018 09:06
@RalfJung
Copy link
Member Author

RalfJung commented Sep 1, 2018

Interesting, function calls do one query less, but they are more careful about argument passing, so maybe that costs more than the query saves.

Scalar::Bits { bits, .. } => bits == 0,
Scalar::Ptr(_) => false
}
}
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Uh... when did this happen? I feel it wasn't present in my original review, but I may have missed it.

I don't like this function because for pointers, it cannot reliably tell you whether this is NULL or not. There might have been overflow. That's why I deliberately removed this function recently.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oh lol, never mind, I am looking at the wrong PR. We have too many PRs called "miri refactor".^^

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