[llvm] [SimplifyCFG][Attributes] Enabling sinking calls with differing number of attrsets (PR #110896)

via llvm-commits llvm-commits at lists.llvm.org
Wed Oct 2 11:05:33 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 d617371375cba53e44eccedbac976f2b74df4f23 ebc4a921d493c86da8401fe92b5db4ef420113e1 --extensions cpp -- llvm/lib/IR/Attributes.cpp llvm/lib/IR/Instruction.cpp llvm/unittests/IR/AttributesTest.cpp
``````````

</details>

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

``````````diff
diff --git a/llvm/lib/IR/Attributes.cpp b/llvm/lib/IR/Attributes.cpp
index 63dfdacbcd..eacfd27c31 100644
--- a/llvm/lib/IR/Attributes.cpp
+++ b/llvm/lib/IR/Attributes.cpp
@@ -1802,7 +1802,8 @@ AttributeList::intersectWith(LLVMContext &C, AttributeList Other) const {
     return *this;
 
   SmallVector<std::pair<unsigned, AttributeSet>> IntersectedAttrs;
-  auto IndexIt = index_iterator(std::max(getNumAttrSets(), Other.getNumAttrSets()));
+  auto IndexIt =
+      index_iterator(std::max(getNumAttrSets(), Other.getNumAttrSets()));
   for (unsigned Idx : IndexIt) {
     fprintf(stderr, "Checking Idx: %u\n", Idx);
     auto IntersectedAS =

``````````

</details>


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


More information about the llvm-commits mailing list