File tree Expand file tree Collapse file tree 1 file changed +1
-2
lines changed
src/cmd/compile/internal/walk Expand file tree Collapse file tree 1 file changed +1
-2
lines changed Original file line number Diff line number Diff line change @@ -286,11 +286,10 @@ func (s *exprSwitch) search(cc []exprClause, out *ir.Nodes) {
286
286
287
287
// Try to implement the clauses with a jump table. Returns true if successful.
288
288
func (s * exprSwitch ) tryJumpTable (cc []exprClause , out * ir.Nodes ) bool {
289
- const go119UseJumpTables = true
290
289
const minCases = 8 // have at least minCases cases in the switch
291
290
const minDensity = 4 // use at least 1 out of every minDensity entries
292
291
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 {
294
293
return false
295
294
}
296
295
if len (cc ) < minCases {
You can’t perform that action at this time.
0 commit comments