[llvm] [LV] Fix FindLastIV reduction for epilogue vectorization. (PR #120395)

via llvm-commits llvm-commits at lists.llvm.org
Mon Jan 13 00:44:13 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 f88ef1bd1bd6ea27237d2abd03b8955e550f97c1 58be178308be9bbd6053efb88441f745d283388c --extensions cpp -- llvm/lib/Transforms/Vectorize/LoopVectorize.cpp
``````````

</details>

<details>
<summary>
View the diff from clang-format here.
</summary>

``````````diff
diff --git a/llvm/lib/Transforms/Vectorize/LoopVectorize.cpp b/llvm/lib/Transforms/Vectorize/LoopVectorize.cpp
index 6b2f8fd61a..2c6020de8d 100644
--- a/llvm/lib/Transforms/Vectorize/LoopVectorize.cpp
+++ b/llvm/lib/Transforms/Vectorize/LoopVectorize.cpp
@@ -7699,7 +7699,7 @@ static void fixReductionScalarResumeWhenVectorizingEpilog(
               m_SpecificICmp(ICmpInst::ICMP_EQ, m_Specific(OrigResumeV),
                              m_Specific(RdxDesc.getRecurrenceStartValue())));
     assert(IsExpectedPattern && "Unexpected reduction resume pattern");
-    (void) IsExpectedPattern;
+    (void)IsExpectedPattern;
     MainResumeValue = OrigResumeV;
   }
   PHINode *MainResumePhi = cast<PHINode>(MainResumeValue);

``````````

</details>


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


More information about the llvm-commits mailing list