[llvm] [X86][CostModel] Price predicate mask-expansion fanout for wide predicated ops (PR #201666)

Simon Pilgrim via llvm-commits llvm-commits at lists.llvm.org
Thu Oct 1 03:31:51 PDT 2026


================
@@ -0,0 +1,63 @@
+; NOTE: Assertions have been autogenerated by utils/update_analyze_test_checks.py UTC_ARGS: --version 6
+; RUN: opt < %s -passes="print<cost-model>" 2>&1 -disable-output -cost-kind=throughput -mtriple=x86_64-- -mattr=+sse2 | FileCheck %s -check-prefixes=CHECK,SSE
+; RUN: opt < %s -passes="print<cost-model>" 2>&1 -disable-output -cost-kind=throughput -mtriple=x86_64-- -mattr=+avx2 | FileCheck %s -check-prefixes=CHECK,AVX2
+; RUN: opt < %s -passes="print<cost-model>" 2>&1 -disable-output -cost-kind=throughput -mtriple=x86_64-- -mattr=+avx512f | FileCheck %s -check-prefixes=CHECK,AVX512
----------------
RKSimon wrote:

Check all cost-kinds - we're using them all more now in middleend

Make sure you add a SSE41 RUN as well - to account for BLENDV costs - maybe use -mcpu=x86-64/x86-64-v2/x86-64-v3/x86-64-v4 RUNS if you can?



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


More information about the llvm-commits mailing list