mirror of
https://github.com/golang/go
synced 2024-11-26 17:07:09 -07:00
cmd/compile: eliminate repetitive code
This commit is contained in:
parent
aa4e0f528e
commit
3d740b9ac1
@ -116,12 +116,11 @@ func (v *bottomUpVisitor) visit(n *Func) uint32 {
|
||||
var i int
|
||||
for i = len(v.stack) - 1; i >= 0; i-- {
|
||||
x := v.stack[i]
|
||||
v.nodeID[x] = ^uint32(0)
|
||||
if x == n {
|
||||
break
|
||||
}
|
||||
v.nodeID[x] = ^uint32(0)
|
||||
}
|
||||
v.nodeID[n] = ^uint32(0)
|
||||
block := v.stack[i:]
|
||||
// Run escape analysis on this set of functions.
|
||||
v.stack = v.stack[:i]
|
||||
|
Loading…
Reference in New Issue
Block a user