Skip to content

Commit 618cd48

Browse files
author
Yonghong Song
committed
[BPF] Set minimum switch cases to be 13
To adjust, add '-mllvm -bpf-min-jump-table-entries=<n>' to the compilation flags.
1 parent c2d434c commit 618cd48

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

llvm/lib/Target/BPF/BPFISelLowering.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ static cl::opt<bool> BPFExpandMemcpyInOrder("bpf-expand-memcpy-in-order",
4040
cl::desc("Expand memcpy into load/store pairs in order"));
4141

4242
static cl::opt<unsigned> BPFMinimumJumpTableEntries(
43-
"bpf-min-jump-table-entries", cl::init(5), cl::Hidden,
43+
"bpf-min-jump-table-entries", cl::init(13), cl::Hidden,
4444
cl::desc("Set minimum number of entries to use a jump table on BPF"));
4545

4646
static void fail(const SDLoc &DL, SelectionDAG &DAG, const Twine &Msg,

0 commit comments

Comments
 (0)