[llvm] [AArch64] Return early rather than asserting when Size of value passed to targetShrinkDemandedConstant is not 32 or 64 (PR #123084)

via llvm-commits llvm-commits at lists.llvm.org
Wed Jan 15 08:56:13 PST 2025


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 d0a36423c188fcf19744e79bda5680977a1c4f9f ab13871cc237ed34ecc30beaf2ce3b682a79808a --extensions cpp -- llvm/lib/Target/AArch64/AArch64ISelLowering.cpp
``````````

</details>

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

``````````diff
diff --git a/llvm/lib/Target/AArch64/AArch64ISelLowering.cpp b/llvm/lib/Target/AArch64/AArch64ISelLowering.cpp
index 32abcfe7a8..2ccb5201a4 100644
--- a/llvm/lib/Target/AArch64/AArch64ISelLowering.cpp
+++ b/llvm/lib/Target/AArch64/AArch64ISelLowering.cpp
@@ -2374,8 +2374,7 @@ bool AArch64TargetLowering::targetShrinkDemandedConstant(
 
   unsigned Size = VT.getSizeInBits();
 
-  if((Size != 32 || Size != 64))
-  {
+  if ((Size != 32 || Size != 64)) {
     return false;
   }
 

``````````

</details>


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


More information about the llvm-commits mailing list