[llvm] [InstSimplify] Add constant folding support for `ucmp`/`scmp` intrinsics (PR #93730)

via llvm-commits llvm-commits at lists.llvm.org
Wed May 29 13:10:17 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 0cd2bf3521a52f255c2b0d466f2f48f15d4a89a9 b7ef565e2f94475f49769781cd9efffefaaa6293 -- llvm/lib/Analysis/ConstantFolding.cpp
``````````

</details>

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

``````````diff
diff --git a/llvm/lib/Analysis/ConstantFolding.cpp b/llvm/lib/Analysis/ConstantFolding.cpp
index c11d303202..787c205718 100644
--- a/llvm/lib/Analysis/ConstantFolding.cpp
+++ b/llvm/lib/Analysis/ConstantFolding.cpp
@@ -2790,7 +2790,8 @@ static Constant *ConstantFoldIntrinsicCall2(Intrinsic::ID IntrinsicID, Type *Ty,
         return ConstantInt::get(Ty, 1);
       }
 
-      assert(false && "Integer values must compare as equal, or one must be less than the other");
+      assert(false && "Integer values must compare as equal, or one must be "
+                      "less than the other");
 
     case Intrinsic::usub_with_overflow:
     case Intrinsic::ssub_with_overflow:

``````````

</details>


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


More information about the llvm-commits mailing list