Actually disable simple_gvn and licm by default.
See https://github.com/stoklund/cretonne/pull/164#discussion_r142449999 for details.
This commit is contained in:
@@ -69,12 +69,14 @@ impl Context {
|
|||||||
|
|
||||||
self.compute_cfg();
|
self.compute_cfg();
|
||||||
self.legalize(isa)?;
|
self.legalize(isa)?;
|
||||||
|
/* TODO: Enable additional optimization passes.
|
||||||
if isa.flags().opt_level() == OptLevel::Best {
|
if isa.flags().opt_level() == OptLevel::Best {
|
||||||
self.compute_domtree();
|
self.compute_domtree();
|
||||||
self.compute_loop_analysis();
|
self.compute_loop_analysis();
|
||||||
self.licm(isa)?;
|
self.licm(isa)?;
|
||||||
self.simple_gvn(isa)?;
|
self.simple_gvn(isa)?;
|
||||||
}
|
}
|
||||||
|
*/
|
||||||
self.compute_domtree();
|
self.compute_domtree();
|
||||||
self.eliminate_unreachable_code(isa)?;
|
self.eliminate_unreachable_code(isa)?;
|
||||||
self.regalloc(isa)?;
|
self.regalloc(isa)?;
|
||||||
|
|||||||
Reference in New Issue
Block a user