[llvm] [Aarch64] Materialize immediates with 64-bit ORR + EOR if shorter (PR #68287)

via llvm-commits llvm-commits at lists.llvm.org
Thu Oct 5 01:17:05 PDT 2023


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 ba149f6e097242dd41aacf747bef35ba374ac467 4c15b0c0846347a540d97a18a7d6e4e632975d48 -- llvm/lib/Target/AArch64/AArch64ExpandImm.cpp llvm/lib/Target/AArch64/AArch64ExpandPseudoInsts.cpp
``````````

</details>

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

``````````diff
diff --git a/llvm/lib/Target/AArch64/AArch64ExpandImm.cpp b/llvm/lib/Target/AArch64/AArch64ExpandImm.cpp
index 6bcc4c515e72..ca7e10f5bb22 100644
--- a/llvm/lib/Target/AArch64/AArch64ExpandImm.cpp
+++ b/llvm/lib/Target/AArch64/AArch64ExpandImm.cpp
@@ -454,7 +454,8 @@ static bool tryEorTwoLogicalImm64s(uint64_t Imm,
     }
 
     // Rotate to the next run of ones
-    Rotation += llvm::countr_zero(llvm::rotr<uint64_t>(RunStarts, Rotation) & ~1);
+    Rotation +=
+        llvm::countr_zero(llvm::rotr<uint64_t>(RunStarts, Rotation) & ~1);
     RotatedImm = llvm::rotr<uint64_t>(Imm, Rotation);
   }
 

``````````

</details>


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


More information about the llvm-commits mailing list