[llvm] [Transforms] LoopIdiomRecognize recognize strlen and wcslen (PR #108985)
via llvm-commits
llvm-commits at lists.llvm.org
Sun Feb 2 10:27:03 PST 2025
github-actions[bot] wrote:
<!--LLVM CODE FORMAT COMMENT: {clang-format}-->
:warning: C/C++ code formatter, clang-format found issues in your code. :warning:
<details>
<summary>
You can test this locally with the following command:
</summary>
``````````bash
git-clang-format --diff db69d6939a93d1e401abe6bfe114e55b69297975 6226db2c22a74e198f5f9ff376b1a8259edbdda7 --extensions cpp,h -- llvm/include/llvm/Transforms/Scalar/LoopIdiomRecognize.h llvm/include/llvm/Transforms/Utils/BuildLibCalls.h llvm/lib/Transforms/Scalar/LoopIdiomRecognize.cpp llvm/lib/Transforms/Utils/BuildLibCalls.cpp
``````````
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/llvm/lib/Transforms/Scalar/LoopIdiomRecognize.cpp b/llvm/lib/Transforms/Scalar/LoopIdiomRecognize.cpp
index 47e34427be4..af587378fd7 100644
--- a/llvm/lib/Transforms/Scalar/LoopIdiomRecognize.cpp
+++ b/llvm/lib/Transforms/Scalar/LoopIdiomRecognize.cpp
@@ -1754,7 +1754,7 @@ bool LoopIdiomRecognize::recognizeAndInsertStrLen() {
Cleanup.push_back(&PN);
}
- // All LCSSA Loop Phi are dead, the left over dead loop body can be cleaned
+ // All LCSSA Loop Phi are dead, the left over dead loop body can be cleaned
// up by later passes
for (PHINode *PN : Cleanup) {
RecursivelyDeleteDeadPHINode(PN);
``````````
</details>
https://github.com/llvm/llvm-project/pull/108985
More information about the llvm-commits
mailing list