Skip to content

Commit

Permalink
Rollup merge of #74715 - oli-obk:mir_pass_diff, r=wesleywiser
Browse files Browse the repository at this point in the history
Add a system for creating diffs across multiple mir optimizations.

r? @wesleywiser
  • Loading branch information
Manishearth authored Jul 24, 2020
2 parents 7f24c7d + b56ea88 commit 5d1d94e
Show file tree
Hide file tree
Showing 5 changed files with 357 additions and 493 deletions.
3 changes: 1 addition & 2 deletions src/test/mir-opt/match-arm-scopes.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,7 @@
// all of the bindings for that scope.
// * No drop flags are used.

// EMIT_MIR rustc.complicated_match.SimplifyCfg-initial.after.mir
// EMIT_MIR rustc.complicated_match.ElaborateDrops.after.mir
// EMIT_MIR rustc.complicated_match SimplifyCfg-initial.after ElaborateDrops.after
fn complicated_match(cond: bool, items: (bool, bool, String)) -> i32 {
match items {
(false, a, s) | (a, false, s) if if cond { return 3 } else { a } => 1,
Expand Down

This file was deleted.

Loading

0 comments on commit 5d1d94e

Please sign in to comment.