mirror of
https://github.com/golang/go.git
synced 2025-12-08 06:10:04 +00:00
cmd/compile: remove BlockDead state
It is unused, remove the clutter. Change-Id: I51a44326b125ef79241459c463441f76a289cc08 Reviewed-on: https://go-review.googlesource.com/22586 Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
This commit is contained in:
parent
3cb090f93c
commit
6ed79fbd1a
4 changed files with 1 additions and 20 deletions
|
|
@ -26,9 +26,6 @@ func applyRewrite(f *Func, rb func(*Block) bool, rv func(*Value, *Config) bool)
|
|||
for {
|
||||
change := false
|
||||
for _, b := range f.Blocks {
|
||||
if b.Kind == BlockDead {
|
||||
continue
|
||||
}
|
||||
if b.Control != nil && b.Control.Op == OpCopy {
|
||||
for b.Control.Op == OpCopy {
|
||||
b.SetControl(b.Control.Args[0])
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue