[llvm] [RISCV][CostModel] VPIntrinsics have same cost as their non-vp counterparts (PR #67178)

via llvm-commits llvm-commits at lists.llvm.org
Fri Sep 22 11:50:41 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 3353f7dd3d91c9b2b6a15ba9229bee53e0cb8196 22fbc50ab9fe0f2adf9bbb6f7071ccd4289bf643 -- llvm/include/llvm/CodeGen/BasicTTIImpl.h
``````````

</details>

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

``````````diff
diff --git a/llvm/include/llvm/CodeGen/BasicTTIImpl.h b/llvm/include/llvm/CodeGen/BasicTTIImpl.h
index 7901622f0..2160025c8 100644
--- a/llvm/include/llvm/CodeGen/BasicTTIImpl.h
+++ b/llvm/include/llvm/CodeGen/BasicTTIImpl.h
@@ -1695,7 +1695,8 @@ public:
       std::optional<Intrinsic::ID> FOp =
           VPIntrinsic::getFunctionalOpcodeForVP(ICA.getID());
       if (FOp)
-        return thisT()->getArithmeticInstrCost(*FOp, ICA.getReturnType(), CostKind);
+        return thisT()->getArithmeticInstrCost(*FOp, ICA.getReturnType(),
+                                               CostKind);
 
       std::optional<Intrinsic::ID> FID =
           VPIntrinsic::getFunctionalIntrinsicIDForVP(ICA.getID());

``````````

</details>


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


More information about the llvm-commits mailing list