mirror of
https://github.com/golang/go.git
synced 2025-12-08 06:10:04 +00:00
cmd/compile/internal/ssa: unnecessary loop break
Change-Id: I32860a36b4acf5412c20bac2e8ebbb3965b796fe
GitHub-Last-Rev: c007639016
GitHub-Pull-Request: golang/go#43617
Reviewed-on: https://go-review.googlesource.com/c/go/+/282832
Reviewed-by: Keith Randall <khr@golang.org>
Run-TryBot: Keith Randall <khr@golang.org>
Trust: Cherry Zhang <cherryyz@google.com>
This commit is contained in:
parent
691db3737c
commit
5834ce1dd7
1 changed files with 1 additions and 0 deletions
|
|
@ -222,6 +222,7 @@ func likelyadjust(f *Func) {
|
||||||
if opcodeTable[v.Op].call {
|
if opcodeTable[v.Op].call {
|
||||||
local[b.ID] = blCALL
|
local[b.ID] = blCALL
|
||||||
certain[b.ID] = max8(blCALL, certain[b.Succs[0].b.ID])
|
certain[b.ID] = max8(blCALL, certain[b.Succs[0].b.ID])
|
||||||
|
break
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue