cmd/compile: catch missed case in binary-search-for-switch

This only affected SIMD-with-spectre=all, so rare, but blocks
CL 753740.

Change-Id: I3bc1306a2b739a6aeb5db78c3abc2d75115cf20f
Reviewed-on: https://go-review.googlesource.com/c/go/+/775780
Auto-Submit: David Chase <drchase@google.com>
LUCI-TryBot-Result: golang-scoped@luci-project-accounts.iam.gserviceaccount.com <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Keith Randall <khr@golang.org>
Reviewed-by: Arseny Samoylov <samoylov.arseny@gmail.com>
Reviewed-by: Keith Randall <khr@google.com>
This commit is contained in:
David Chase 2026-05-08 09:45:52 -04:00 committed by Gopher Robot
parent c7d87cda53
commit 3f3387fab8

View file

@ -2042,6 +2042,10 @@ func branchTableN(s *state, idx *ssa.Value, intrinsicCall *ir.CallExpr, genOp fu
s.startBlock(bPanic)
s.rtcall(ir.Syms.PanicSimdImm, false, nil)
}
if s.curBlock != nil {
bb := s.endBlock()
bb.AddEdgeTo(jt)
}
s.startBlock(jt)
jt.Kind = ssa.BlockPlain