[llvm] [SLP] Order clustered load base pointers by ascending offsets (PR #100653)

via llvm-commits llvm-commits at lists.llvm.org
Thu Jul 25 14:11:35 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 e0c14c05a3e3178164ca7368516c080b823ef484 6cb86465ce0fc1524bc4ee126179eb40cf587dfa --extensions cpp -- llvm/lib/Transforms/Vectorize/SLPVectorizer.cpp
``````````

</details>

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

``````````diff
diff --git a/llvm/lib/Transforms/Vectorize/SLPVectorizer.cpp b/llvm/lib/Transforms/Vectorize/SLPVectorizer.cpp
index aa29cb14b3..1afeac417b 100644
--- a/llvm/lib/Transforms/Vectorize/SLPVectorizer.cpp
+++ b/llvm/lib/Transforms/Vectorize/SLPVectorizer.cpp
@@ -4851,7 +4851,7 @@ static bool clusterSortPtrAccesses(ArrayRef<Value *> VL, Type *ElemTy,
   llvm::stable_sort(SortedBases, [](std::pair<Value *, Value *> V1,
                                     std::pair<Value *, Value *> V2) {
     const Value *V = V2.second;
-    while(auto *Gep = dyn_cast<GetElementPtrInst>(V)) {
+    while (auto *Gep = dyn_cast<GetElementPtrInst>(V)) {
       if (Gep->getOperand(0) == V1.second)
         return true;
       V = Gep->getOperand(0);

``````````

</details>


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


More information about the llvm-commits mailing list