Fix handling of value aliases, and re-enable LICM.

Value aliases aren't instructions, so they don't have a location in the
CFG, so it's not meaningful to query whether a value alias is defined
within a loop.
This commit is contained in:
Dan Gohman
2018-03-28 13:20:11 -07:00
parent db2be8ee01
commit e5ec7242cc
3 changed files with 113 additions and 15 deletions

View File

@@ -92,10 +92,8 @@ 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();