MCPcopy Create free account
hub / github.com/Amanieu/regalloc3 / new_block

Method new_block

src/internal/move_optimizer.rs:454–458  ·  view source on GitHub ↗

Resets the state tracker to a clean slate with no live values.

(&mut self)

Source from the content-addressed store, hash-verified

452
453 /// Resets the state tracker to a clean slate with no live values.
454 fn new_block(&mut self) {
455 self.value_regs.clear();
456 self.last_unit_write.clear();
457 self.spillslot_values.clear();
458 }
459
460 /// Clobbers any existing value on a register that contains the given unit.
461 fn clobber_unit(&mut self, unit: RegUnit) {

Callers 2

runMethod · 0.80
compute_entry_statesMethod · 0.80

Calls 1

clearMethod · 0.45

Tested by

no test coverage detected