Skip to content

Commit 925a6c7

Browse files
committed
[AArch64] Lower jump table cases threshold to 10
Previous stabs at this setting hypertuned it for SPEC2017, but Clang's own compilation can benefit from a slightly lower threshold, yielding 0.3% improvement in compile time, while still maintaining a 0.1% improvement in SPEC2017. Most notable benefactors of this change are: - llvm::Instruction::getNumSuccessors (11 cases) - llvm::Instruction::getSuccessor (11 cases)
1 parent 66911b7 commit 925a6c7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

llvm/lib/Target/AArch64/AArch64Subtarget.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ static cl::opt<AArch64PAuth::AuthCheckMethod>
7373
cl::values(AUTH_CHECK_METHOD_CL_VALUES_LR));
7474

7575
static cl::opt<unsigned> AArch64MinimumJumpTableEntries(
76-
"aarch64-min-jump-table-entries", cl::init(13), cl::Hidden,
76+
"aarch64-min-jump-table-entries", cl::init(10), cl::Hidden,
7777
cl::desc("Set minimum number of entries to use a jump table on AArch64"));
7878

7979
static cl::opt<unsigned> AArch64StreamingHazardSize(

0 commit comments

Comments
 (0)