Fix bug when i128 ebb param is unused

This commit is contained in:
bjorn3
2019-06-29 14:37:05 +02:00
committed by Dan Gohman
parent 44ecc9c3d0
commit d9ee08c088
3 changed files with 90 additions and 36 deletions

View File

@@ -174,6 +174,10 @@ pub fn legalize_function(func: &mut ir::Function, cfg: &mut ControlFlowGraph, is
}
}
while let Some(ebb) = pos.next_ebb() {
split::split_ebb_params(pos.func, cfg, ebb);
}
// Try legalizing `isplit` and `vsplit` instructions, which could not previously be legalized.
for inst in pending_splits {
//pos.goto_inst(inst);