[llvm] ValueTracking: complete matchSimpleRecurrence (PR #108973)

via llvm-commits llvm-commits at lists.llvm.org
Wed Sep 18 14:07:38 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 4de7026ce36564ef2f86ddcd7f183d837ad0901d 4a4d5174537bf5b2c905c09999e4b2b72a49415b --extensions cpp -- llvm/lib/Analysis/ValueTracking.cpp
``````````

</details>

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

``````````diff
diff --git a/llvm/lib/Analysis/ValueTracking.cpp b/llvm/lib/Analysis/ValueTracking.cpp
index f19397d681..5dcd2a5842 100644
--- a/llvm/lib/Analysis/ValueTracking.cpp
+++ b/llvm/lib/Analysis/ValueTracking.cpp
@@ -1518,9 +1518,9 @@ static void computeKnownBitsFromOperator(const Operator *I,
       }
       case Instruction::UDiv:
       case Instruction::URem:
-         // Result cannot be larger than start value.
-         Known.Zero.setHighBits(Known2.countMinLeadingZeros());
-         break;
+        // Result cannot be larger than start value.
+        Known.Zero.setHighBits(Known2.countMinLeadingZeros());
+        break;
       case Instruction::SDiv:
       case Instruction::SRem: {
         // Magnitude of result cannot be larger than that of start value.

``````````

</details>


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


More information about the llvm-commits mailing list