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

Don't always run add_call_guards pass #71106

Merged
merged 1 commit into from Apr 15, 2020
Merged

Don't always run add_call_guards pass #71106

merged 1 commit into from Apr 15, 2020

Conversation

jonas-schievink
Copy link
Contributor

It is only needed when add_retag runs.

(the pass is run again to split critical edges before codegen, that one is required)

@rust-highfive
Copy link
Collaborator

r? @petrochenkov

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

@rust-highfive rust-highfive added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label Apr 13, 2020
@jonas-schievink
Copy link
Contributor Author

@bors rollup=never

to capture perf impact when landing

@petrochenkov
Copy link
Contributor

r? @ecstatic-morse

@ecstatic-morse
Copy link
Contributor

This means that the MIR dump for add_retag will also have the effects of add_call_guards. I suspect this is fine, but just in case:

r? @RalfJung

Alternatively, you can add a variant/flag to AddCallGuards that will only run the pass if stacked borrows is enabled, thus preserving the MIR dumps. I would r+ that version if you don't want to wait for Ralf's OK.

@RalfJung
Copy link
Member

Yeah this is fine, as long as AddRetag can rely on there not being any critical edges. :)

@bors r=ecstatic-morse,RalfJung

@bors
Copy link
Contributor

bors commented Apr 14, 2020

📌 Commit 8c50006 has been approved by ecstatic-morse,RalfJung

@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 Apr 14, 2020
@Dylan-DPC-zz
Copy link

@bors p=1

@bors
Copy link
Contributor

bors commented Apr 15, 2020

⌛ Testing commit 8c50006 with merge 351eefe...

@bors
Copy link
Contributor

bors commented Apr 15, 2020

☀️ Test successful - checks-azure
Approved by: ecstatic-morse,RalfJung
Pushing 351eefe to master...

@bors bors added the merged-by-bors This PR was explicitly merged by bors. label Apr 15, 2020
@bors bors merged commit 351eefe into rust-lang:master Apr 15, 2020
@jonas-schievink jonas-schievink deleted the remove-call-guard-pass branch April 15, 2020 17:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
merged-by-bors This PR was explicitly merged by bors. 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.

None yet

7 participants