]> Cypherpunks repositories - gostls13.git/commitdiff
cmd/compile/internal/ssa: unnecessary loop break
authorcui <cuiweixie@gmail.com>
Sun, 10 Jan 2021 06:52:16 +0000 (06:52 +0000)
committerKeith Randall <khr@golang.org>
Thu, 25 Mar 2021 21:28:23 +0000 (21:28 +0000)
Change-Id: I32860a36b4acf5412c20bac2e8ebbb3965b796fe
GitHub-Last-Rev: c0076390168b2425a1e2c30ea2e9ac32fb4c3365
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>

src/cmd/compile/internal/ssa/likelyadjust.go

index 49898a1322b951b71dcc44f4c744f09e3cd97964..f462bf29a64d198fa6174f35b11822ccfe3ae6d3 100644 (file)
@@ -222,6 +222,7 @@ func likelyadjust(f *Func) {
                                if opcodeTable[v.Op].call {
                                        local[b.ID] = blCALL
                                        certain[b.ID] = max8(blCALL, certain[b.Succs[0].b.ID])
+                                       break
                                }
                        }
                }