Fix lone isplit, when the corresponding iconcat will be created later during legalization

This commit is contained in:
bjorn3
2019-06-29 17:17:02 +02:00
committed by Dan Gohman
parent 0d5b87038a
commit dce521fa1c
2 changed files with 26 additions and 2 deletions

View File

@@ -174,8 +174,8 @@ pub fn legalize_function(func: &mut ir::Function, cfg: &mut ControlFlowGraph, is
// Try legalizing `isplit` and `vsplit` instructions, which could not previously be legalized.
for inst in pending_splits {
//pos.goto_inst(inst);
//legalize_inst(inst, &mut pos, cfg, isa);
pos.goto_inst(inst);
legalize_inst(inst, &mut pos, cfg, isa);
}
// Now that we've lowered all br_tables, we don't need the jump tables anymore.