[llvm] [SystemZ] Fix Operand Retrieval for Vector Reduction Intrinsic in `shouldExpandReduction` (PR #88874)

via llvm-commits llvm-commits at lists.llvm.org
Wed Apr 17 04:14:50 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 a06073f91e7bbbb532e68bbf6b903c2f5051f4c2 b1868f2d8a7a2a6f1a2c491905bc20424644db12 -- llvm/lib/Target/SystemZ/SystemZTargetTransformInfo.cpp
``````````

</details>

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

``````````diff
diff --git a/llvm/lib/Target/SystemZ/SystemZTargetTransformInfo.cpp b/llvm/lib/Target/SystemZ/SystemZTargetTransformInfo.cpp
index 76abfad654..b17af73e6c 100644
--- a/llvm/lib/Target/SystemZ/SystemZTargetTransformInfo.cpp
+++ b/llvm/lib/Target/SystemZ/SystemZTargetTransformInfo.cpp
@@ -1327,7 +1327,7 @@ SystemZTTIImpl::getIntrinsicInstrCost(const IntrinsicCostAttributes &ICA,
 // Asserts that the operand indicated is actually a vector.
 FixedVectorType *getOperandVectorType(const IntrinsicInst *II, unsigned Index) {
   auto *T = II->getOperand(Index)->getType();
-  assert (T->isVectorTy());
+  assert(T->isVectorTy());
   return cast<FixedVectorType>(T);
 }
 

``````````

</details>


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


More information about the llvm-commits mailing list