Disable the LICM pass for now.

There appear to be underlying problems with the way Cretonne handles value
aliases, which are causing problems for LICM. Disable LICM until we have
a chance to fix the underlying issues.

Fixes #275.
This commit is contained in:
Dan Gohman
2018-03-22 16:55:18 -07:00
parent af8ac8f8ca
commit 9602b78320

View File

@@ -92,8 +92,10 @@ impl Context {
self.legalize(isa)?;
if isa.flags().opt_level() == OptLevel::Best {
self.compute_domtree();
/* TODO: Re-enable LICM.
self.compute_loop_analysis();
self.licm(isa)?;
*/
self.simple_gvn(isa)?;
}
self.compute_domtree();