refactor to use reg.Set

This commit is contained in:
Michael McLoughlin
2018-12-03 22:39:43 -08:00
parent faafa00e40
commit 9376a230cf
6 changed files with 118 additions and 30 deletions

4
ast.go
View File

@@ -47,8 +47,8 @@ type Instruction struct {
Succ []*Instruction
// LiveIn/LiveOut are sets of live register IDs pre/post execution.
LiveIn map[reg.ID]bool
LiveOut map[reg.ID]bool
LiveIn reg.Set
LiveOut reg.Set
}
func (i *Instruction) node() {}