Skip to content

Commit 4e3abee

Browse files
committed
cmd/compile: remove go119UseJumpTables flag
Change-Id: Iaaac46e96b74289096ce0c6186c73000d1fc6faa Reviewed-on: https://go-review.googlesource.com/c/go/+/463224 Reviewed-by: Cherry Mui <[email protected]> Reviewed-by: Keith Randall <[email protected]> Run-TryBot: Keith Randall <[email protected]> TryBot-Result: Gopher Robot <[email protected]>
1 parent 5ad799e commit 4e3abee

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/cmd/compile/internal/walk/switch.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -286,11 +286,10 @@ func (s *exprSwitch) search(cc []exprClause, out *ir.Nodes) {
286286

287287
// Try to implement the clauses with a jump table. Returns true if successful.
288288
func (s *exprSwitch) tryJumpTable(cc []exprClause, out *ir.Nodes) bool {
289-
const go119UseJumpTables = true
290289
const minCases = 8 // have at least minCases cases in the switch
291290
const minDensity = 4 // use at least 1 out of every minDensity entries
292291

293-
if !go119UseJumpTables || base.Flag.N != 0 || !ssagen.Arch.LinkArch.CanJumpTable || base.Ctxt.Retpoline {
292+
if base.Flag.N != 0 || !ssagen.Arch.LinkArch.CanJumpTable || base.Ctxt.Retpoline {
294293
return false
295294
}
296295
if len(cc) < minCases {

0 commit comments

Comments
 (0)