[llvm] [Transforms] LoopIdiomRecognize recognize strlen and wcslen (PR #108985)

Michael Kruse via llvm-commits llvm-commits at lists.llvm.org
Wed Oct 2 08:00:38 PDT 2024


================
@@ -126,6 +128,22 @@ static cl::opt<bool, true>
                       cl::location(DisableLIRP::Memcpy), cl::init(false),
                       cl::ReallyHidden);
 
+bool DisableLIRP::Strlen;
+static cl::opt<bool, true>
+    DisableLIRPStrlen("disable-" DEBUG_TYPE "-strlen",
----------------
Meinersbur wrote:

```suggestion
    DisableLIRPStrlen("disable-loop-idiom-strlen",
```
A mechanism for debugging should not have functional effects.

https://github.com/llvm/llvm-project/pull/108985


More information about the llvm-commits mailing list