Move default blocks into jump tables (#5756)
Move the default block off of the br_table instrution, and into the JumpTable that it references.
This commit is contained in:
@@ -421,12 +421,7 @@ pub fn write_operands(w: &mut dyn Write, dfg: &DataFlowGraph, inst: Inst) -> fmt
|
||||
write!(w, " {}, {}", arg, block_then.display(pool))?;
|
||||
write!(w, ", {}", block_else.display(pool))
|
||||
}
|
||||
BranchTable {
|
||||
arg,
|
||||
destination,
|
||||
table,
|
||||
..
|
||||
} => write!(w, " {}, {}, {}", arg, destination, jump_tables[table]),
|
||||
BranchTable { arg, table, .. } => write!(w, " {}, {}", arg, jump_tables[table]),
|
||||
Call {
|
||||
func_ref, ref args, ..
|
||||
} => write!(w, " {}({})", func_ref, DisplayValues(args.as_slice(pool))),
|
||||
|
||||
Reference in New Issue
Block a user