[llvm] [RISCV][TTI] Add cost of typebased cast VPIntrinsics with functionalOPC. (PR #97797)

via llvm-commits llvm-commits at lists.llvm.org
Fri Jul 5 01:12:11 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 8101cbff77aca47ee3c7de8e43d0546057ff2ee6 9d94b767e43a8606a2ac7d178cdd05e651f5bebb -- llvm/lib/Target/RISCV/RISCVTargetTransformInfo.cpp
``````````

</details>

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

``````````diff
diff --git a/llvm/lib/Target/RISCV/RISCVTargetTransformInfo.cpp b/llvm/lib/Target/RISCV/RISCVTargetTransformInfo.cpp
index 63a554f474..6edac923c1 100644
--- a/llvm/lib/Target/RISCV/RISCVTargetTransformInfo.cpp
+++ b/llvm/lib/Target/RISCV/RISCVTargetTransformInfo.cpp
@@ -999,7 +999,8 @@ RISCVTTIImpl::getIntrinsicInstrCost(const IntrinsicCostAttributes &ICA,
     std::optional<unsigned> FOp =
         VPIntrinsic::getFunctionalOpcodeForVP(ICA.getID());
     if (FOp && !ICA.getArgTypes().empty())
-      return getCastInstrCost(*FOp, ICA.getReturnType(), ICA.getArgTypes()[0], TTI::CastContextHint::None, CostKind);
+      return getCastInstrCost(*FOp, ICA.getReturnType(), ICA.getArgTypes()[0],
+                              TTI::CastContextHint::None, CostKind);
     break;
   }
   }

``````````

</details>


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


More information about the llvm-commits mailing list