Skip to content

Commit

Permalink
Better optimization pipeline
Browse files Browse the repository at this point in the history
  • Loading branch information
James Miller committed Jun 1, 2013
1 parent e516d23 commit 6e075b6
Showing 1 changed file with 5 additions and 10 deletions.
15 changes: 5 additions & 10 deletions src/librustc/back/passes.rs
Original file line number Diff line number Diff line change
Expand Up @@ -70,9 +70,12 @@ pub fn create_standard_passes(level:OptLevel) -> ~[~str] {

passes.push(~"targetlibinfo");

passes.push(~"tbaa");
passes.push(~"scev-aa");
passes.push(~"basicaa");

passes.push(~"instcombine");
passes.push(~"simplifycfg");
passes.push(~"scalarrepl-ssa");
passes.push(~"early-cse");

passes.push(~"globalopt");
Expand All @@ -83,10 +86,6 @@ pub fn create_standard_passes(level:OptLevel) -> ~[~str] {

passes.push(~"prune-eh");

if level == Aggressive {
passes.push(~"mergefunc");
}

passes.push(~"inline");

passes.push(~"functionattrs");
Expand All @@ -95,6 +94,7 @@ pub fn create_standard_passes(level:OptLevel) -> ~[~str] {
passes.push(~"argpromotion");
}

passes.push(~"scalarrepl-ssa");
passes.push(~"early-cse");
passes.push(~"simplify-libcalls");
passes.push(~"jump-threading");
Expand Down Expand Up @@ -134,11 +134,6 @@ pub fn create_standard_passes(level:OptLevel) -> ~[~str] {
passes.push(~"correlated-propagation");
passes.push(~"dse");

passes.push(~"instcombine");
passes.push(~"early-cse");

passes.push(~"loop-unroll");

passes.push(~"adce");
passes.push(~"simplifycfg");
passes.push(~"instsimplify");
Expand Down

5 comments on commit 6e075b6

@bors
Copy link
Contributor

@bors bors commented on 6e075b6 Jun 1, 2013

Choose a reason for hiding this comment

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

saw approval from thestinger
at Aatch@6e075b6

@bors
Copy link
Contributor

@bors bors commented on 6e075b6 Jun 1, 2013

Choose a reason for hiding this comment

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

merging Aatch/rust/new-passes-2 = 6e075b6 into auto

@bors
Copy link
Contributor

@bors bors commented on 6e075b6 Jun 1, 2013

Choose a reason for hiding this comment

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

Aatch/rust/new-passes-2 = 6e075b6 merged ok, testing candidate = b8391cc

@bors
Copy link
Contributor

@bors bors commented on 6e075b6 Jun 1, 2013

Choose a reason for hiding this comment

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

@bors
Copy link
Contributor

@bors bors commented on 6e075b6 Jun 1, 2013

Choose a reason for hiding this comment

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

fast-forwarding incoming to auto = b8391cc

Please sign in to comment.