[llvm] [LV] Fix emission of debug message in legality check (PR #101924)
via llvm-commits
llvm-commits at lists.llvm.org
Sun Aug 4 23:23:44 PDT 2024
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 120740b16c27c12ce989793c2e1a95ac564f25b8 6782629300d8e25bab09a588b4650c569c9c642e --extensions cpp -- llvm/lib/Transforms/Vectorize/LoopVectorizationLegality.cpp
``````````
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/llvm/lib/Transforms/Vectorize/LoopVectorizationLegality.cpp b/llvm/lib/Transforms/Vectorize/LoopVectorizationLegality.cpp
index 35c841f470..3d9822ee83 100644
--- a/llvm/lib/Transforms/Vectorize/LoopVectorizationLegality.cpp
+++ b/llvm/lib/Transforms/Vectorize/LoopVectorizationLegality.cpp
@@ -1511,7 +1511,6 @@ bool LoopVectorizationLegality::canVectorize(bool UseVPlanNativePath) {
return false;
}
-
unsigned SCEVThreshold = VectorizeSCEVCheckThreshold;
if (Hints->getForce() == LoopVectorizeHints::FK_Enabled)
SCEVThreshold = PragmaVectorizeSCEVCheckThreshold;
@@ -1528,8 +1527,8 @@ bool LoopVectorizationLegality::canVectorize(bool UseVPlanNativePath) {
if (Result) {
LLVM_DEBUG(dbgs() << "LV: We can vectorize this loop"
<< (LAI->getRuntimePointerChecking()->Need
- ? " (with a runtime bound check)"
- : "")
+ ? " (with a runtime bound check)"
+ : "")
<< "!\n");
}
``````````
</details>
https://github.com/llvm/llvm-project/pull/101924
More information about the llvm-commits
mailing list