[llvm] [RISCV][TTI] Implement instruction cost for vp.reduce.* (PR #114184)
Elvis Wang via llvm-commits
llvm-commits at lists.llvm.org
Mon Nov 4 20:50:52 PST 2024
================
@@ -1,8 +1,10 @@
; NOTE: Assertions have been autogenerated by utils/update_analyze_test_checks.py
-; RUN: opt < %s -mtriple=riscv32 -mattr=+v -passes="print<cost-model>" -cost-kind=throughput 2>&1 -disable-output | FileCheck %s
-; RUN: opt < %s -mtriple=riscv64 -mattr=+v -passes="print<cost-model>" -cost-kind=throughput 2>&1 -disable-output | FileCheck %s
-; RUN: opt < %s -mtriple=riscv32 -mattr=+v -passes="print<cost-model>" -cost-kind=code-size 2>&1 -disable-output | FileCheck %s --check-prefix=SIZE
-; RUN: opt < %s -mtriple=riscv64 -mattr=+v -passes="print<cost-model>" -cost-kind=code-size 2>&1 -disable-output | FileCheck %s --check-prefix=SIZE
+; RUN: opt < %s -mtriple=riscv32 -mattr=+v -passes="print<cost-model>" -cost-kind=throughput 2>&1 -disable-output --type-based-intrinsic-cost=true | FileCheck %s
----------------
ElvisWang123 wrote:
You mean remove `--type-based-intrinsic-cost=true` from the original `RUN` and add another version of the `RUN` line with `--type-based-intrinsic-cost=true`? Or you thought we have better approach to test the instruction cost of vp-intrinsics here?
I am not sure what you want?
https://github.com/llvm/llvm-project/pull/114184
More information about the llvm-commits
mailing list