[llvm] [CVP] #114820 add 'samesign' for 'icmp' (PR #115642)

via llvm-commits llvm-commits at lists.llvm.org
Sun Nov 10 01:19:14 PST 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 d822c099eeacc69f6bf834a6373a41d0c9f84a3e 4302d3fa7811a652cc750bb9286aef74ce768517 --extensions cpp -- llvm/lib/Transforms/Scalar/CorrelatedValuePropagation.cpp
``````````

</details>

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

``````````diff
diff --git a/llvm/lib/Transforms/Scalar/CorrelatedValuePropagation.cpp b/llvm/lib/Transforms/Scalar/CorrelatedValuePropagation.cpp
index cbd0f1492f..243f6651a2 100644
--- a/llvm/lib/Transforms/Scalar/CorrelatedValuePropagation.cpp
+++ b/llvm/lib/Transforms/Scalar/CorrelatedValuePropagation.cpp
@@ -294,9 +294,9 @@ static bool processICmp(ICmpInst *Cmp, LazyValueInfo *LVI) {
   bool Changed = false;
 
   ConstantRange CR1 = LVI->getConstantRangeAtUse(Cmp->getOperandUse(0),
-                                                 /*UndefAllowed=*/ true),
+                                                 /*UndefAllowed=*/true),
                 CR2 = LVI->getConstantRangeAtUse(Cmp->getOperandUse(1),
-                                                 /*UndefAllowed=*/ true);
+                                                 /*UndefAllowed=*/true);
 
   if (Cmp->isSigned()) {
     ICmpInst::Predicate UnsignedPred =

``````````

</details>


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


More information about the llvm-commits mailing list