[llvm] [AggressiveInstCombine] Inline strcmp/strncmp (PR #89371)
Nikita Popov via llvm-commits
llvm-commits at lists.llvm.org
Wed May 1 19:23:25 PDT 2024
================
@@ -922,13 +914,238 @@ static bool foldPatternedLoads(Instruction &I, const DataLayout &DL) {
return true;
}
+static cl::opt<unsigned> StrNCmpInlineThreshold(
+ "strncmp-inline-threshold", cl::init(3), cl::Hidden,
+ cl::desc("The maximum length of a constant string for a builtin string cmp "
+ "call eligible for inlining. The default value is 3."));
----------------
nikic wrote:
Keep cl::opt at the top of the file please.
https://github.com/llvm/llvm-project/pull/89371
More information about the llvm-commits
mailing list