Skip to content

Run branch cleanup after copy prop - #59290

Merged
bors merged 1 commit into
rust-lang:masterfrom
oli-obk:trivial_move_prop
Mar 19, 2019
Merged

bors merged 1 commit into
rust-lang:masterfrom
oli-obk:trivial_move_prop

Conversation

@oli-obk

@oli-obk oli-obk commented Mar 19, 2019

Copy link
Copy Markdown
Contributor

This is preliminary work for #59288 (comment) which gets rid of if in the HIR.

cc @rust-lang/wg-mir-opt @Centril

@rust-highfive

ghost commented Mar 19, 2019

Copy link
Copy Markdown
Contributor

r? @michaelwoerister

(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 Mar 19, 2019
@davidtwco

ghost commented Mar 19, 2019

Copy link
Copy Markdown
Member

r? @davidtwco

@Centril

ghost commented Mar 19, 2019

Copy link
Copy Markdown
Contributor

@bors r=davidtwco rollup

@bors

This comment has been minimized.

@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 Mar 19, 2019
@davidtwco

ghost commented Mar 19, 2019 •

Copy link
Copy Markdown
Member

@bors r+

14 seconds too late.

@bors

This comment has been minimized.

@bors

ghost commented Mar 19, 2019

Copy link
Copy Markdown
Collaborator

📌 Commit ab41023 has been approved by davidtwco

@varkor

ghost commented Mar 19, 2019

Copy link
Copy Markdown
Contributor

Is running this pass expected to have any (negative) effect on compilation times?

@oli-obk

ghost commented Mar 19, 2019

Copy link
Copy Markdown
Contributor Author

We've been running it after "const propagation" (a pass that just lints and does not actually propagate anything) already. This is just a second run after copy prop (which is semi-expensive). The pass itself is very cheap (it just iterates over all the blocks' terminators and checks for constants, there's no larger analysis going on).

I think we'd rather end up seing build time improvements since more code is thrown away before llvm ever sees it.

@bors
bors merged commit ab41023 into rust-lang:master Mar 19, 2019
@Centril Centril added the A-let-chains Area: let chains (if-let, while-let, ...) label Oct 10, 2019
@oli-obk
oli-obk deleted the trivial_move_prop branch March 16, 2021 12:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

A-let-chains Area: let chains (if-let, while-let, ...) 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.

7 participants