[llvm] [PowerPC] custom constant scalar_to_vector on pwr7 (PR #109850)

via llvm-commits llvm-commits at lists.llvm.org
Tue Sep 24 12:31:30 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 1be4c9710bd09e2f56908ca6cee54cb80ca1774d c88502e6d41d5b4e5668e766512035322d223d2f --extensions cpp -- llvm/lib/Target/PowerPC/PPCISelLowering.cpp
``````````

</details>

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

``````````diff
diff --git a/llvm/lib/Target/PowerPC/PPCISelLowering.cpp b/llvm/lib/Target/PowerPC/PPCISelLowering.cpp
index a23a770251..5a819a5e68 100644
--- a/llvm/lib/Target/PowerPC/PPCISelLowering.cpp
+++ b/llvm/lib/Target/PowerPC/PPCISelLowering.cpp
@@ -11598,8 +11598,8 @@ SDValue PPCTargetLowering::LowerSCALAR_TO_VECTOR(SDValue Op,
   if (isa<ConstantSDNode>(Op0) && EltSize <= 32) {
     int64_t IntVal = Op.getConstantOperandVal(0);
     if (IntVal >= -16 && IntVal <= 15)
-      return getCanonicalConstSplat(IntVal, EltSize / 8, Op.getValueType(),
-                                    DAG, dl);
+      return getCanonicalConstSplat(IntVal, EltSize / 8, Op.getValueType(), DAG,
+                                    dl);
   }
 
   ReuseLoadInfo RLI;

``````````

</details>


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


More information about the llvm-commits mailing list