[llvm] [AggressiveInstCombine] Expand strchr/memchr with small constant strings (PR #98501)
Nikita Popov via llvm-commits
llvm-commits at lists.llvm.org
Sat Jul 13 10:00:07 PDT 2024
================
@@ -54,6 +54,11 @@ static cl::opt<unsigned> StrNCmpInlineThreshold(
cl::desc("The maximum length of a constant string for a builtin string cmp "
"call eligible for inlining. The default value is 3."));
+static cl::opt<unsigned>
+ StrChrInlineThreshold("strchr-inline-threshold", cl::init(3), cl::Hidden,
----------------
nikic wrote:
How did you chose this limit?
https://github.com/llvm/llvm-project/pull/98501
More information about the llvm-commits
mailing list