]> git.lizzy.rs Git - rust.git/commitdiff
Auto merge of #29757 - dotdash:mir_simplify_cfg, r=nikomatsakis
authorbors <bors@rust-lang.org>
Thu, 12 Nov 2015 15:48:34 +0000 (15:48 +0000)
committerbors <bors@rust-lang.org>
Thu, 12 Nov 2015 15:48:34 +0000 (15:48 +0000)
For now, this pass does some easy transformations, like eliminating
empty blocks that just jump to another block, some trivial
conversion of If terminators into Gotos and removal of dead blocks.

r? @nikomatsakis

1  2 
src/librustc_mir/mir_map.rs
src/librustc_mir/repr.rs

index 9362aeb6005c148757f4df155a0e8dc1e3a2dda1,1e488ceedfd883e25463d13bb2eb24049ed6e271..1359cbc82a662541f84bb4d70b8d2f5467a195e6
@@@ -22,8 -22,9 +22,9 @@@ extern crate rustc_front
  
  use build;
  use dot;
+ use transform::*;
  use repr::Mir;
 -use hair::cx::{PatNode, Cx};
 +use hair::cx::Cx;
  use std::fs::File;
  
  use self::rustc::middle::infer;
Simple merge