From 5834ce1dd770c848342ec357a8317a4eb2d88aca Mon Sep 17 00:00:00 2001 From: cui Date: Sun, 10 Jan 2021 06:52:16 +0000 Subject: [PATCH] cmd/compile/internal/ssa: unnecessary loop break 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 Run-TryBot: Keith Randall Trust: Cherry Zhang --- src/cmd/compile/internal/ssa/likelyadjust.go | 1 + 1 file changed, 1 insertion(+) diff --git a/src/cmd/compile/internal/ssa/likelyadjust.go b/src/cmd/compile/internal/ssa/likelyadjust.go index 49898a1322b..f462bf29a64 100644 --- a/src/cmd/compile/internal/ssa/likelyadjust.go +++ b/src/cmd/compile/internal/ssa/likelyadjust.go @@ -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 } } }