[llvm] [Instructions] cache computed shufflevector properties (PR #115536)

via llvm-commits llvm-commits at lists.llvm.org
Fri Nov 8 11:10:42 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 ac4bd74190fedfbe025ef757ff308dd184a507f5 8a66a24cd42835c58cbfee73f85bb16f474e729b --extensions h,cpp -- llvm/include/llvm/IR/Instructions.h llvm/lib/IR/Instructions.cpp
``````````

</details>

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

``````````diff
diff --git a/llvm/lib/IR/Instructions.cpp b/llvm/lib/IR/Instructions.cpp
index 987bf2a031..f858c2d9df 100644
--- a/llvm/lib/IR/Instructions.cpp
+++ b/llvm/lib/IR/Instructions.cpp
@@ -2143,7 +2143,8 @@ bool ShuffleVectorInst::isIdentityWithExtract() const {
   if (NumMaskElts >= NumOpElts)
     return CachedShuffleProperties.isIdentityWithExtract = false;
 
-  return CachedShuffleProperties.isIdentityWithExtract = isIdentityMaskImpl(getShuffleMask(), NumOpElts);
+  return CachedShuffleProperties.isIdentityWithExtract =
+             isIdentityMaskImpl(getShuffleMask(), NumOpElts);
 }
 
 bool ShuffleVectorInst::isConcat() const {

``````````

</details>


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


More information about the llvm-commits mailing list