[llvm] [AMDGPU] Cost i1 insertelements as free (PR #211246)

Luke Lau via llvm-commits llvm-commits at lists.llvm.org
Wed Jul 22 05:19:19 PDT 2026


https://github.com/lukel97 created https://github.com/llvm/llvm-project/pull/211246

>From the discussion in https://github.com/llvm/llvm-project/pull/206697#discussion_r3503977327

Booleans are free to scalarize in AMDGPU, so mark insertelements into i1 vectors as free. This removes some of the AMDGPU diffs from #206697

This doesn't mark extractelements as free since that ends up flattening the costs for `vector.reduce.or/and`.

>From d4e24e5733fd7a576263b53d07267b7b4c092042 Mon Sep 17 00:00:00 2001
From: Luke Lau <luke at igalia.com>
Date: Wed, 22 Jul 2026 20:06:40 +0800
Subject: [PATCH] [AMDGPU] Cost i1 insertelements as free

---
 .../AMDGPU/AMDGPUTargetTransformInfo.cpp      |   4 +
 .../CostModel/AMDGPU/insertelement.ll         |  96 +++++++--------
 .../Analysis/CostModel/AMDGPU/is_fpclass.ll   | 112 +++++++++---------
 3 files changed, 108 insertions(+), 104 deletions(-)

diff --git a/llvm/lib/Target/AMDGPU/AMDGPUTargetTransformInfo.cpp b/llvm/lib/Target/AMDGPU/AMDGPUTargetTransformInfo.cpp
index 1d8c1ce0fb747..e0b7bf03aaf06 100644
--- a/llvm/lib/Target/AMDGPU/AMDGPUTargetTransformInfo.cpp
+++ b/llvm/lib/Target/AMDGPU/AMDGPUTargetTransformInfo.cpp
@@ -1027,6 +1027,10 @@ InstructionCost GCNTTIImpl::getVectorInstrCost(
     if (EltSize < 32) {
       if (EltSize == 16 && Index == 0 && ST->has16BitInsts())
         return 0;
+      // Inserts of booleans are free.
+      // TODO: Extracts are free too.
+      if (EltSize == 1 && Opcode == Instruction::InsertElement)
+        return TargetTransformInfo::TCC_Free;
       // Extract element sequences of consecutive i8 values that match a
       // register size are free most likely. It is not possible to know
       // if this extract is part of a consecutive sequence so this may
diff --git a/llvm/test/Analysis/CostModel/AMDGPU/insertelement.ll b/llvm/test/Analysis/CostModel/AMDGPU/insertelement.ll
index 3995da6d4fad6..795f94655fd3e 100644
--- a/llvm/test/Analysis/CostModel/AMDGPU/insertelement.ll
+++ b/llvm/test/Analysis/CostModel/AMDGPU/insertelement.ll
@@ -677,68 +677,68 @@ define i32 @insert_i8_poison(i32 %arg) {
 define i32 @insert_i1_poison(i32 %arg) {
 ; ALL-LABEL: 'insert_i1_poison'
 ; ALL-NEXT:  Cost Model: Found an estimated cost of 2 for instruction: %v2i1_a = insertelement <2 x i1> poison, i1 poison, i32 %arg
-; ALL-NEXT:  Cost Model: Found an estimated cost of 1 for instruction: %v2i1_0 = insertelement <2 x i1> poison, i1 poison, i32 0
-; ALL-NEXT:  Cost Model: Found an estimated cost of 1 for instruction: %v2i1_1 = insertelement <2 x i1> poison, i1 poison, i32 1
+; ALL-NEXT:  Cost Model: Found an estimated cost of 0 for instruction: %v2i1_0 = insertelement <2 x i1> poison, i1 poison, i32 0
+; ALL-NEXT:  Cost Model: Found an estimated cost of 0 for instruction: %v2i1_1 = insertelement <2 x i1> poison, i1 poison, i32 1
 ; ALL-NEXT:  Cost Model: Found an estimated cost of 2 for instruction: %v4i1_a = insertelement <4 x i1> poison, i1 poison, i32 %arg
-; ALL-NEXT:  Cost Model: Found an estimated cost of 1 for instruction: %v4i1_0 = insertelement <4 x i1> poison, i1 poison, i32 0
-; ALL-NEXT:  Cost Model: Found an estimated cost of 1 for instruction: %v4i1_2 = insertelement <4 x i1> poison, i1 poison, i32 2
+; ALL-NEXT:  Cost Model: Found an estimated cost of 0 for instruction: %v4i1_0 = insertelement <4 x i1> poison, i1 poison, i32 0
+; ALL-NEXT:  Cost Model: Found an estimated cost of 0 for instruction: %v4i1_2 = insertelement <4 x i1> poison, i1 poison, i32 2
 ; ALL-NEXT:  Cost Model: Found an estimated cost of 2 for instruction: %v8i1_a = insertelement <8 x i1> poison, i1 poison, i32 %arg
-; ALL-NEXT:  Cost Model: Found an estimated cost of 1 for instruction: %v8i1_0 = insertelement <8 x i1> poison, i1 poison, i32 0
-; ALL-NEXT:  Cost Model: Found an estimated cost of 1 for instruction: %v8i1_4 = insertelement <8 x i1> poison, i1 poison, i32 4
+; ALL-NEXT:  Cost Model: Found an estimated cost of 0 for instruction: %v8i1_0 = insertelement <8 x i1> poison, i1 poison, i32 0
+; ALL-NEXT:  Cost Model: Found an estimated cost of 0 for instruction: %v8i1_4 = insertelement <8 x i1> poison, i1 poison, i32 4
 ; ALL-NEXT:  Cost Model: Found an estimated cost of 2 for instruction: %v16i1_a = insertelement <16 x i1> poison, i1 poison, i32 %arg
-; ALL-NEXT:  Cost Model: Found an estimated cost of 1 for instruction: %v16i1_0 = insertelement <16 x i1> poison, i1 poison, i32 0
-; ALL-NEXT:  Cost Model: Found an estimated cost of 1 for instruction: %v16i1_8 = insertelement <16 x i1> poison, i1 poison, i32 8
-; ALL-NEXT:  Cost Model: Found an estimated cost of 1 for instruction: %v16i1_15 = insertelement <16 x i1> poison, i1 poison, i32 15
+; ALL-NEXT:  Cost Model: Found an estimated cost of 0 for instruction: %v16i1_0 = insertelement <16 x i1> poison, i1 poison, i32 0
+; ALL-NEXT:  Cost Model: Found an estimated cost of 0 for instruction: %v16i1_8 = insertelement <16 x i1> poison, i1 poison, i32 8
+; ALL-NEXT:  Cost Model: Found an estimated cost of 0 for instruction: %v16i1_15 = insertelement <16 x i1> poison, i1 poison, i32 15
 ; ALL-NEXT:  Cost Model: Found an estimated cost of 2 for instruction: %v32i1_a = insertelement <32 x i1> poison, i1 poison, i32 %arg
-; ALL-NEXT:  Cost Model: Found an estimated cost of 1 for instruction: %v32i1_0 = insertelement <32 x i1> poison, i1 poison, i32 0
-; ALL-NEXT:  Cost Model: Found an estimated cost of 1 for instruction: %v32i1_7 = insertelement <32 x i1> poison, i1 poison, i32 7
-; ALL-NEXT:  Cost Model: Found an estimated cost of 1 for instruction: %v32i1_8 = insertelement <32 x i1> poison, i1 poison, i32 8
-; ALL-NEXT:  Cost Model: Found an estimated cost of 1 for instruction: %v32i1_15 = insertelement <32 x i1> poison, i1 poison, i32 15
-; ALL-NEXT:  Cost Model: Found an estimated cost of 1 for instruction: %v32i1_24 = insertelement <32 x i1> poison, i1 poison, i32 24
-; ALL-NEXT:  Cost Model: Found an estimated cost of 1 for instruction: %v32i1_31 = insertelement <32 x i1> poison, i1 poison, i32 31
+; ALL-NEXT:  Cost Model: Found an estimated cost of 0 for instruction: %v32i1_0 = insertelement <32 x i1> poison, i1 poison, i32 0
+; ALL-NEXT:  Cost Model: Found an estimated cost of 0 for instruction: %v32i1_7 = insertelement <32 x i1> poison, i1 poison, i32 7
+; ALL-NEXT:  Cost Model: Found an estimated cost of 0 for instruction: %v32i1_8 = insertelement <32 x i1> poison, i1 poison, i32 8
+; ALL-NEXT:  Cost Model: Found an estimated cost of 0 for instruction: %v32i1_15 = insertelement <32 x i1> poison, i1 poison, i32 15
+; ALL-NEXT:  Cost Model: Found an estimated cost of 0 for instruction: %v32i1_24 = insertelement <32 x i1> poison, i1 poison, i32 24
+; ALL-NEXT:  Cost Model: Found an estimated cost of 0 for instruction: %v32i1_31 = insertelement <32 x i1> poison, i1 poison, i32 31
 ; ALL-NEXT:  Cost Model: Found an estimated cost of 2 for instruction: %v64i1_a = insertelement <64 x i1> poison, i1 poison, i32 %arg
-; ALL-NEXT:  Cost Model: Found an estimated cost of 1 for instruction: %v64i1_0 = insertelement <64 x i1> poison, i1 poison, i32 0
-; ALL-NEXT:  Cost Model: Found an estimated cost of 1 for instruction: %v64i1_7 = insertelement <64 x i1> poison, i1 poison, i32 7
-; ALL-NEXT:  Cost Model: Found an estimated cost of 1 for instruction: %v64i1_8 = insertelement <64 x i1> poison, i1 poison, i32 8
-; ALL-NEXT:  Cost Model: Found an estimated cost of 1 for instruction: %v64i1_15 = insertelement <64 x i1> poison, i1 poison, i32 15
-; ALL-NEXT:  Cost Model: Found an estimated cost of 1 for instruction: %v64i1_24 = insertelement <64 x i1> poison, i1 poison, i32 24
-; ALL-NEXT:  Cost Model: Found an estimated cost of 1 for instruction: %v64i1_31 = insertelement <64 x i1> poison, i1 poison, i32 31
-; ALL-NEXT:  Cost Model: Found an estimated cost of 1 for instruction: %v64i1_32 = insertelement <64 x i1> poison, i1 poison, i32 32
-; ALL-NEXT:  Cost Model: Found an estimated cost of 1 for instruction: %v64i1_48 = insertelement <64 x i1> poison, i1 poison, i32 48
-; ALL-NEXT:  Cost Model: Found an estimated cost of 1 for instruction: %v64i1_63 = insertelement <64 x i1> poison, i1 poison, i32 63
+; ALL-NEXT:  Cost Model: Found an estimated cost of 0 for instruction: %v64i1_0 = insertelement <64 x i1> poison, i1 poison, i32 0
+; ALL-NEXT:  Cost Model: Found an estimated cost of 0 for instruction: %v64i1_7 = insertelement <64 x i1> poison, i1 poison, i32 7
+; ALL-NEXT:  Cost Model: Found an estimated cost of 0 for instruction: %v64i1_8 = insertelement <64 x i1> poison, i1 poison, i32 8
+; ALL-NEXT:  Cost Model: Found an estimated cost of 0 for instruction: %v64i1_15 = insertelement <64 x i1> poison, i1 poison, i32 15
+; ALL-NEXT:  Cost Model: Found an estimated cost of 0 for instruction: %v64i1_24 = insertelement <64 x i1> poison, i1 poison, i32 24
+; ALL-NEXT:  Cost Model: Found an estimated cost of 0 for instruction: %v64i1_31 = insertelement <64 x i1> poison, i1 poison, i32 31
+; ALL-NEXT:  Cost Model: Found an estimated cost of 0 for instruction: %v64i1_32 = insertelement <64 x i1> poison, i1 poison, i32 32
+; ALL-NEXT:  Cost Model: Found an estimated cost of 0 for instruction: %v64i1_48 = insertelement <64 x i1> poison, i1 poison, i32 48
+; ALL-NEXT:  Cost Model: Found an estimated cost of 0 for instruction: %v64i1_63 = insertelement <64 x i1> poison, i1 poison, i32 63
 ; ALL-NEXT:  Cost Model: Found an estimated cost of 10 for instruction: ret i32 poison
 ;
 ; ALL-SIZE-LABEL: 'insert_i1_poison'
 ; ALL-SIZE-NEXT:  Cost Model: Found an estimated cost of 2 for instruction: %v2i1_a = insertelement <2 x i1> poison, i1 poison, i32 %arg
-; ALL-SIZE-NEXT:  Cost Model: Found an estimated cost of 1 for instruction: %v2i1_0 = insertelement <2 x i1> poison, i1 poison, i32 0
-; ALL-SIZE-NEXT:  Cost Model: Found an estimated cost of 1 for instruction: %v2i1_1 = insertelement <2 x i1> poison, i1 poison, i32 1
+; ALL-SIZE-NEXT:  Cost Model: Found an estimated cost of 0 for instruction: %v2i1_0 = insertelement <2 x i1> poison, i1 poison, i32 0
+; ALL-SIZE-NEXT:  Cost Model: Found an estimated cost of 0 for instruction: %v2i1_1 = insertelement <2 x i1> poison, i1 poison, i32 1
 ; ALL-SIZE-NEXT:  Cost Model: Found an estimated cost of 2 for instruction: %v4i1_a = insertelement <4 x i1> poison, i1 poison, i32 %arg
-; ALL-SIZE-NEXT:  Cost Model: Found an estimated cost of 1 for instruction: %v4i1_0 = insertelement <4 x i1> poison, i1 poison, i32 0
-; ALL-SIZE-NEXT:  Cost Model: Found an estimated cost of 1 for instruction: %v4i1_2 = insertelement <4 x i1> poison, i1 poison, i32 2
+; ALL-SIZE-NEXT:  Cost Model: Found an estimated cost of 0 for instruction: %v4i1_0 = insertelement <4 x i1> poison, i1 poison, i32 0
+; ALL-SIZE-NEXT:  Cost Model: Found an estimated cost of 0 for instruction: %v4i1_2 = insertelement <4 x i1> poison, i1 poison, i32 2
 ; ALL-SIZE-NEXT:  Cost Model: Found an estimated cost of 2 for instruction: %v8i1_a = insertelement <8 x i1> poison, i1 poison, i32 %arg
-; ALL-SIZE-NEXT:  Cost Model: Found an estimated cost of 1 for instruction: %v8i1_0 = insertelement <8 x i1> poison, i1 poison, i32 0
-; ALL-SIZE-NEXT:  Cost Model: Found an estimated cost of 1 for instruction: %v8i1_4 = insertelement <8 x i1> poison, i1 poison, i32 4
+; ALL-SIZE-NEXT:  Cost Model: Found an estimated cost of 0 for instruction: %v8i1_0 = insertelement <8 x i1> poison, i1 poison, i32 0
+; ALL-SIZE-NEXT:  Cost Model: Found an estimated cost of 0 for instruction: %v8i1_4 = insertelement <8 x i1> poison, i1 poison, i32 4
 ; ALL-SIZE-NEXT:  Cost Model: Found an estimated cost of 2 for instruction: %v16i1_a = insertelement <16 x i1> poison, i1 poison, i32 %arg
-; ALL-SIZE-NEXT:  Cost Model: Found an estimated cost of 1 for instruction: %v16i1_0 = insertelement <16 x i1> poison, i1 poison, i32 0
-; ALL-SIZE-NEXT:  Cost Model: Found an estimated cost of 1 for instruction: %v16i1_8 = insertelement <16 x i1> poison, i1 poison, i32 8
-; ALL-SIZE-NEXT:  Cost Model: Found an estimated cost of 1 for instruction: %v16i1_15 = insertelement <16 x i1> poison, i1 poison, i32 15
+; ALL-SIZE-NEXT:  Cost Model: Found an estimated cost of 0 for instruction: %v16i1_0 = insertelement <16 x i1> poison, i1 poison, i32 0
+; ALL-SIZE-NEXT:  Cost Model: Found an estimated cost of 0 for instruction: %v16i1_8 = insertelement <16 x i1> poison, i1 poison, i32 8
+; ALL-SIZE-NEXT:  Cost Model: Found an estimated cost of 0 for instruction: %v16i1_15 = insertelement <16 x i1> poison, i1 poison, i32 15
 ; ALL-SIZE-NEXT:  Cost Model: Found an estimated cost of 2 for instruction: %v32i1_a = insertelement <32 x i1> poison, i1 poison, i32 %arg
-; ALL-SIZE-NEXT:  Cost Model: Found an estimated cost of 1 for instruction: %v32i1_0 = insertelement <32 x i1> poison, i1 poison, i32 0
-; ALL-SIZE-NEXT:  Cost Model: Found an estimated cost of 1 for instruction: %v32i1_7 = insertelement <32 x i1> poison, i1 poison, i32 7
-; ALL-SIZE-NEXT:  Cost Model: Found an estimated cost of 1 for instruction: %v32i1_8 = insertelement <32 x i1> poison, i1 poison, i32 8
-; ALL-SIZE-NEXT:  Cost Model: Found an estimated cost of 1 for instruction: %v32i1_15 = insertelement <32 x i1> poison, i1 poison, i32 15
-; ALL-SIZE-NEXT:  Cost Model: Found an estimated cost of 1 for instruction: %v32i1_24 = insertelement <32 x i1> poison, i1 poison, i32 24
-; ALL-SIZE-NEXT:  Cost Model: Found an estimated cost of 1 for instruction: %v32i1_31 = insertelement <32 x i1> poison, i1 poison, i32 31
+; ALL-SIZE-NEXT:  Cost Model: Found an estimated cost of 0 for instruction: %v32i1_0 = insertelement <32 x i1> poison, i1 poison, i32 0
+; ALL-SIZE-NEXT:  Cost Model: Found an estimated cost of 0 for instruction: %v32i1_7 = insertelement <32 x i1> poison, i1 poison, i32 7
+; ALL-SIZE-NEXT:  Cost Model: Found an estimated cost of 0 for instruction: %v32i1_8 = insertelement <32 x i1> poison, i1 poison, i32 8
+; ALL-SIZE-NEXT:  Cost Model: Found an estimated cost of 0 for instruction: %v32i1_15 = insertelement <32 x i1> poison, i1 poison, i32 15
+; ALL-SIZE-NEXT:  Cost Model: Found an estimated cost of 0 for instruction: %v32i1_24 = insertelement <32 x i1> poison, i1 poison, i32 24
+; ALL-SIZE-NEXT:  Cost Model: Found an estimated cost of 0 for instruction: %v32i1_31 = insertelement <32 x i1> poison, i1 poison, i32 31
 ; ALL-SIZE-NEXT:  Cost Model: Found an estimated cost of 2 for instruction: %v64i1_a = insertelement <64 x i1> poison, i1 poison, i32 %arg
-; ALL-SIZE-NEXT:  Cost Model: Found an estimated cost of 1 for instruction: %v64i1_0 = insertelement <64 x i1> poison, i1 poison, i32 0
-; ALL-SIZE-NEXT:  Cost Model: Found an estimated cost of 1 for instruction: %v64i1_7 = insertelement <64 x i1> poison, i1 poison, i32 7
-; ALL-SIZE-NEXT:  Cost Model: Found an estimated cost of 1 for instruction: %v64i1_8 = insertelement <64 x i1> poison, i1 poison, i32 8
-; ALL-SIZE-NEXT:  Cost Model: Found an estimated cost of 1 for instruction: %v64i1_15 = insertelement <64 x i1> poison, i1 poison, i32 15
-; ALL-SIZE-NEXT:  Cost Model: Found an estimated cost of 1 for instruction: %v64i1_24 = insertelement <64 x i1> poison, i1 poison, i32 24
-; ALL-SIZE-NEXT:  Cost Model: Found an estimated cost of 1 for instruction: %v64i1_31 = insertelement <64 x i1> poison, i1 poison, i32 31
-; ALL-SIZE-NEXT:  Cost Model: Found an estimated cost of 1 for instruction: %v64i1_32 = insertelement <64 x i1> poison, i1 poison, i32 32
-; ALL-SIZE-NEXT:  Cost Model: Found an estimated cost of 1 for instruction: %v64i1_48 = insertelement <64 x i1> poison, i1 poison, i32 48
-; ALL-SIZE-NEXT:  Cost Model: Found an estimated cost of 1 for instruction: %v64i1_63 = insertelement <64 x i1> poison, i1 poison, i32 63
+; ALL-SIZE-NEXT:  Cost Model: Found an estimated cost of 0 for instruction: %v64i1_0 = insertelement <64 x i1> poison, i1 poison, i32 0
+; ALL-SIZE-NEXT:  Cost Model: Found an estimated cost of 0 for instruction: %v64i1_7 = insertelement <64 x i1> poison, i1 poison, i32 7
+; ALL-SIZE-NEXT:  Cost Model: Found an estimated cost of 0 for instruction: %v64i1_8 = insertelement <64 x i1> poison, i1 poison, i32 8
+; ALL-SIZE-NEXT:  Cost Model: Found an estimated cost of 0 for instruction: %v64i1_15 = insertelement <64 x i1> poison, i1 poison, i32 15
+; ALL-SIZE-NEXT:  Cost Model: Found an estimated cost of 0 for instruction: %v64i1_24 = insertelement <64 x i1> poison, i1 poison, i32 24
+; ALL-SIZE-NEXT:  Cost Model: Found an estimated cost of 0 for instruction: %v64i1_31 = insertelement <64 x i1> poison, i1 poison, i32 31
+; ALL-SIZE-NEXT:  Cost Model: Found an estimated cost of 0 for instruction: %v64i1_32 = insertelement <64 x i1> poison, i1 poison, i32 32
+; ALL-SIZE-NEXT:  Cost Model: Found an estimated cost of 0 for instruction: %v64i1_48 = insertelement <64 x i1> poison, i1 poison, i32 48
+; ALL-SIZE-NEXT:  Cost Model: Found an estimated cost of 0 for instruction: %v64i1_63 = insertelement <64 x i1> poison, i1 poison, i32 63
 ; ALL-SIZE-NEXT:  Cost Model: Found an estimated cost of 1 for instruction: ret i32 poison
 ;
   %v2i1_a  = insertelement <2 x i1> poison, i1 poison, i32 %arg
diff --git a/llvm/test/Analysis/CostModel/AMDGPU/is_fpclass.ll b/llvm/test/Analysis/CostModel/AMDGPU/is_fpclass.ll
index 75dcae1f9cf3a..ed9ea95066130 100644
--- a/llvm/test/Analysis/CostModel/AMDGPU/is_fpclass.ll
+++ b/llvm/test/Analysis/CostModel/AMDGPU/is_fpclass.ll
@@ -5,24 +5,24 @@
 define void @is_fpclass_f16() {
 ; ALL-LABEL: 'is_fpclass_f16'
 ; ALL-NEXT:  Cost Model: Found an estimated cost of 1 for instruction: %f16 = call i1 @llvm.is.fpclass.f16(half undef, /* (none) */ i32 0)
-; ALL-NEXT:  Cost Model: Found an estimated cost of 4 for instruction: %v2f16 = call <2 x i1> @llvm.is.fpclass.v2f16(<2 x half> undef, /* (none) */ i32 0)
-; ALL-NEXT:  Cost Model: Found an estimated cost of 6 for instruction: %v3f16 = call <3 x i1> @llvm.is.fpclass.v3f16(<3 x half> undef, /* (none) */ i32 0)
-; ALL-NEXT:  Cost Model: Found an estimated cost of 8 for instruction: %v4f16 = call <4 x i1> @llvm.is.fpclass.v4f16(<4 x half> undef, /* (none) */ i32 0)
-; ALL-NEXT:  Cost Model: Found an estimated cost of 10 for instruction: %v5f16 = call <5 x i1> @llvm.is.fpclass.v5f16(<5 x half> undef, /* (none) */ i32 0)
-; ALL-NEXT:  Cost Model: Found an estimated cost of 16 for instruction: %v8f16 = call <8 x i1> @llvm.is.fpclass.v8f16(<8 x half> undef, /* (none) */ i32 0)
-; ALL-NEXT:  Cost Model: Found an estimated cost of 32 for instruction: %v16f16 = call <16 x i1> @llvm.is.fpclass.v16f16(<16 x half> undef, /* (none) */ i32 0)
-; ALL-NEXT:  Cost Model: Found an estimated cost of 34 for instruction: %v17f16 = call <17 x i1> @llvm.is.fpclass.v17f16(<17 x half> undef, /* (none) */ i32 0)
+; ALL-NEXT:  Cost Model: Found an estimated cost of 2 for instruction: %v2f16 = call <2 x i1> @llvm.is.fpclass.v2f16(<2 x half> undef, /* (none) */ i32 0)
+; ALL-NEXT:  Cost Model: Found an estimated cost of 3 for instruction: %v3f16 = call <3 x i1> @llvm.is.fpclass.v3f16(<3 x half> undef, /* (none) */ i32 0)
+; ALL-NEXT:  Cost Model: Found an estimated cost of 4 for instruction: %v4f16 = call <4 x i1> @llvm.is.fpclass.v4f16(<4 x half> undef, /* (none) */ i32 0)
+; ALL-NEXT:  Cost Model: Found an estimated cost of 5 for instruction: %v5f16 = call <5 x i1> @llvm.is.fpclass.v5f16(<5 x half> undef, /* (none) */ i32 0)
+; ALL-NEXT:  Cost Model: Found an estimated cost of 8 for instruction: %v8f16 = call <8 x i1> @llvm.is.fpclass.v8f16(<8 x half> undef, /* (none) */ i32 0)
+; ALL-NEXT:  Cost Model: Found an estimated cost of 16 for instruction: %v16f16 = call <16 x i1> @llvm.is.fpclass.v16f16(<16 x half> undef, /* (none) */ i32 0)
+; ALL-NEXT:  Cost Model: Found an estimated cost of 17 for instruction: %v17f16 = call <17 x i1> @llvm.is.fpclass.v17f16(<17 x half> undef, /* (none) */ i32 0)
 ; ALL-NEXT:  Cost Model: Found an estimated cost of 10 for instruction: ret void
 ;
 ; ALL-SIZE-LABEL: 'is_fpclass_f16'
 ; ALL-SIZE-NEXT:  Cost Model: Found an estimated cost of 1 for instruction: %f16 = call i1 @llvm.is.fpclass.f16(half undef, /* (none) */ i32 0)
-; ALL-SIZE-NEXT:  Cost Model: Found an estimated cost of 4 for instruction: %v2f16 = call <2 x i1> @llvm.is.fpclass.v2f16(<2 x half> undef, /* (none) */ i32 0)
-; ALL-SIZE-NEXT:  Cost Model: Found an estimated cost of 6 for instruction: %v3f16 = call <3 x i1> @llvm.is.fpclass.v3f16(<3 x half> undef, /* (none) */ i32 0)
-; ALL-SIZE-NEXT:  Cost Model: Found an estimated cost of 8 for instruction: %v4f16 = call <4 x i1> @llvm.is.fpclass.v4f16(<4 x half> undef, /* (none) */ i32 0)
-; ALL-SIZE-NEXT:  Cost Model: Found an estimated cost of 10 for instruction: %v5f16 = call <5 x i1> @llvm.is.fpclass.v5f16(<5 x half> undef, /* (none) */ i32 0)
-; ALL-SIZE-NEXT:  Cost Model: Found an estimated cost of 16 for instruction: %v8f16 = call <8 x i1> @llvm.is.fpclass.v8f16(<8 x half> undef, /* (none) */ i32 0)
-; ALL-SIZE-NEXT:  Cost Model: Found an estimated cost of 32 for instruction: %v16f16 = call <16 x i1> @llvm.is.fpclass.v16f16(<16 x half> undef, /* (none) */ i32 0)
-; ALL-SIZE-NEXT:  Cost Model: Found an estimated cost of 34 for instruction: %v17f16 = call <17 x i1> @llvm.is.fpclass.v17f16(<17 x half> undef, /* (none) */ i32 0)
+; ALL-SIZE-NEXT:  Cost Model: Found an estimated cost of 2 for instruction: %v2f16 = call <2 x i1> @llvm.is.fpclass.v2f16(<2 x half> undef, /* (none) */ i32 0)
+; ALL-SIZE-NEXT:  Cost Model: Found an estimated cost of 3 for instruction: %v3f16 = call <3 x i1> @llvm.is.fpclass.v3f16(<3 x half> undef, /* (none) */ i32 0)
+; ALL-SIZE-NEXT:  Cost Model: Found an estimated cost of 4 for instruction: %v4f16 = call <4 x i1> @llvm.is.fpclass.v4f16(<4 x half> undef, /* (none) */ i32 0)
+; ALL-SIZE-NEXT:  Cost Model: Found an estimated cost of 5 for instruction: %v5f16 = call <5 x i1> @llvm.is.fpclass.v5f16(<5 x half> undef, /* (none) */ i32 0)
+; ALL-SIZE-NEXT:  Cost Model: Found an estimated cost of 8 for instruction: %v8f16 = call <8 x i1> @llvm.is.fpclass.v8f16(<8 x half> undef, /* (none) */ i32 0)
+; ALL-SIZE-NEXT:  Cost Model: Found an estimated cost of 16 for instruction: %v16f16 = call <16 x i1> @llvm.is.fpclass.v16f16(<16 x half> undef, /* (none) */ i32 0)
+; ALL-SIZE-NEXT:  Cost Model: Found an estimated cost of 17 for instruction: %v17f16 = call <17 x i1> @llvm.is.fpclass.v17f16(<17 x half> undef, /* (none) */ i32 0)
 ; ALL-SIZE-NEXT:  Cost Model: Found an estimated cost of 1 for instruction: ret void
 ;
   %f16 = call i1 @llvm.is.fpclass.f16(half undef, i32 0)
@@ -39,24 +39,24 @@ define void @is_fpclass_f16() {
 define void @is_fpclass_bf16() {
 ; ALL-LABEL: 'is_fpclass_bf16'
 ; ALL-NEXT:  Cost Model: Found an estimated cost of 1 for instruction: %bf16 = call i1 @llvm.is.fpclass.bf16(bfloat undef, /* (none) */ i32 0)
-; ALL-NEXT:  Cost Model: Found an estimated cost of 4 for instruction: %v2bf16 = call <2 x i1> @llvm.is.fpclass.v2bf16(<2 x bfloat> undef, /* (none) */ i32 0)
-; ALL-NEXT:  Cost Model: Found an estimated cost of 6 for instruction: %v3bf16 = call <3 x i1> @llvm.is.fpclass.v3bf16(<3 x bfloat> undef, /* (none) */ i32 0)
-; ALL-NEXT:  Cost Model: Found an estimated cost of 8 for instruction: %v4bf16 = call <4 x i1> @llvm.is.fpclass.v4bf16(<4 x bfloat> undef, /* (none) */ i32 0)
-; ALL-NEXT:  Cost Model: Found an estimated cost of 10 for instruction: %v5bf16 = call <5 x i1> @llvm.is.fpclass.v5bf16(<5 x bfloat> undef, /* (none) */ i32 0)
-; ALL-NEXT:  Cost Model: Found an estimated cost of 16 for instruction: %v8bf16 = call <8 x i1> @llvm.is.fpclass.v8bf16(<8 x bfloat> undef, /* (none) */ i32 0)
-; ALL-NEXT:  Cost Model: Found an estimated cost of 32 for instruction: %v16bf16 = call <16 x i1> @llvm.is.fpclass.v16bf16(<16 x bfloat> undef, /* (none) */ i32 0)
-; ALL-NEXT:  Cost Model: Found an estimated cost of 34 for instruction: %v17bf16 = call <17 x i1> @llvm.is.fpclass.v17bf16(<17 x bfloat> undef, /* (none) */ i32 0)
+; ALL-NEXT:  Cost Model: Found an estimated cost of 2 for instruction: %v2bf16 = call <2 x i1> @llvm.is.fpclass.v2bf16(<2 x bfloat> undef, /* (none) */ i32 0)
+; ALL-NEXT:  Cost Model: Found an estimated cost of 3 for instruction: %v3bf16 = call <3 x i1> @llvm.is.fpclass.v3bf16(<3 x bfloat> undef, /* (none) */ i32 0)
+; ALL-NEXT:  Cost Model: Found an estimated cost of 4 for instruction: %v4bf16 = call <4 x i1> @llvm.is.fpclass.v4bf16(<4 x bfloat> undef, /* (none) */ i32 0)
+; ALL-NEXT:  Cost Model: Found an estimated cost of 5 for instruction: %v5bf16 = call <5 x i1> @llvm.is.fpclass.v5bf16(<5 x bfloat> undef, /* (none) */ i32 0)
+; ALL-NEXT:  Cost Model: Found an estimated cost of 8 for instruction: %v8bf16 = call <8 x i1> @llvm.is.fpclass.v8bf16(<8 x bfloat> undef, /* (none) */ i32 0)
+; ALL-NEXT:  Cost Model: Found an estimated cost of 16 for instruction: %v16bf16 = call <16 x i1> @llvm.is.fpclass.v16bf16(<16 x bfloat> undef, /* (none) */ i32 0)
+; ALL-NEXT:  Cost Model: Found an estimated cost of 17 for instruction: %v17bf16 = call <17 x i1> @llvm.is.fpclass.v17bf16(<17 x bfloat> undef, /* (none) */ i32 0)
 ; ALL-NEXT:  Cost Model: Found an estimated cost of 10 for instruction: ret void
 ;
 ; ALL-SIZE-LABEL: 'is_fpclass_bf16'
 ; ALL-SIZE-NEXT:  Cost Model: Found an estimated cost of 1 for instruction: %bf16 = call i1 @llvm.is.fpclass.bf16(bfloat undef, /* (none) */ i32 0)
-; ALL-SIZE-NEXT:  Cost Model: Found an estimated cost of 4 for instruction: %v2bf16 = call <2 x i1> @llvm.is.fpclass.v2bf16(<2 x bfloat> undef, /* (none) */ i32 0)
-; ALL-SIZE-NEXT:  Cost Model: Found an estimated cost of 6 for instruction: %v3bf16 = call <3 x i1> @llvm.is.fpclass.v3bf16(<3 x bfloat> undef, /* (none) */ i32 0)
-; ALL-SIZE-NEXT:  Cost Model: Found an estimated cost of 8 for instruction: %v4bf16 = call <4 x i1> @llvm.is.fpclass.v4bf16(<4 x bfloat> undef, /* (none) */ i32 0)
-; ALL-SIZE-NEXT:  Cost Model: Found an estimated cost of 10 for instruction: %v5bf16 = call <5 x i1> @llvm.is.fpclass.v5bf16(<5 x bfloat> undef, /* (none) */ i32 0)
-; ALL-SIZE-NEXT:  Cost Model: Found an estimated cost of 16 for instruction: %v8bf16 = call <8 x i1> @llvm.is.fpclass.v8bf16(<8 x bfloat> undef, /* (none) */ i32 0)
-; ALL-SIZE-NEXT:  Cost Model: Found an estimated cost of 32 for instruction: %v16bf16 = call <16 x i1> @llvm.is.fpclass.v16bf16(<16 x bfloat> undef, /* (none) */ i32 0)
-; ALL-SIZE-NEXT:  Cost Model: Found an estimated cost of 34 for instruction: %v17bf16 = call <17 x i1> @llvm.is.fpclass.v17bf16(<17 x bfloat> undef, /* (none) */ i32 0)
+; ALL-SIZE-NEXT:  Cost Model: Found an estimated cost of 2 for instruction: %v2bf16 = call <2 x i1> @llvm.is.fpclass.v2bf16(<2 x bfloat> undef, /* (none) */ i32 0)
+; ALL-SIZE-NEXT:  Cost Model: Found an estimated cost of 3 for instruction: %v3bf16 = call <3 x i1> @llvm.is.fpclass.v3bf16(<3 x bfloat> undef, /* (none) */ i32 0)
+; ALL-SIZE-NEXT:  Cost Model: Found an estimated cost of 4 for instruction: %v4bf16 = call <4 x i1> @llvm.is.fpclass.v4bf16(<4 x bfloat> undef, /* (none) */ i32 0)
+; ALL-SIZE-NEXT:  Cost Model: Found an estimated cost of 5 for instruction: %v5bf16 = call <5 x i1> @llvm.is.fpclass.v5bf16(<5 x bfloat> undef, /* (none) */ i32 0)
+; ALL-SIZE-NEXT:  Cost Model: Found an estimated cost of 8 for instruction: %v8bf16 = call <8 x i1> @llvm.is.fpclass.v8bf16(<8 x bfloat> undef, /* (none) */ i32 0)
+; ALL-SIZE-NEXT:  Cost Model: Found an estimated cost of 16 for instruction: %v16bf16 = call <16 x i1> @llvm.is.fpclass.v16bf16(<16 x bfloat> undef, /* (none) */ i32 0)
+; ALL-SIZE-NEXT:  Cost Model: Found an estimated cost of 17 for instruction: %v17bf16 = call <17 x i1> @llvm.is.fpclass.v17bf16(<17 x bfloat> undef, /* (none) */ i32 0)
 ; ALL-SIZE-NEXT:  Cost Model: Found an estimated cost of 1 for instruction: ret void
 ;
   %bf16 = call i1 @llvm.is.fpclass.bf16(bfloat undef, i32 0)
@@ -73,24 +73,24 @@ define void @is_fpclass_bf16() {
 define void @is_fpclass_f32() {
 ; ALL-LABEL: 'is_fpclass_f32'
 ; ALL-NEXT:  Cost Model: Found an estimated cost of 1 for instruction: %f32 = call i1 @llvm.is.fpclass.f32(float undef, /* (none) */ i32 0)
-; ALL-NEXT:  Cost Model: Found an estimated cost of 4 for instruction: %v2f32 = call <2 x i1> @llvm.is.fpclass.v2f32(<2 x float> undef, /* (none) */ i32 0)
-; ALL-NEXT:  Cost Model: Found an estimated cost of 6 for instruction: %v3f32 = call <3 x i1> @llvm.is.fpclass.v3f32(<3 x float> undef, /* (none) */ i32 0)
-; ALL-NEXT:  Cost Model: Found an estimated cost of 8 for instruction: %v4f32 = call <4 x i1> @llvm.is.fpclass.v4f32(<4 x float> undef, /* (none) */ i32 0)
-; ALL-NEXT:  Cost Model: Found an estimated cost of 10 for instruction: %v5f32 = call <5 x i1> @llvm.is.fpclass.v5f32(<5 x float> undef, /* (none) */ i32 0)
-; ALL-NEXT:  Cost Model: Found an estimated cost of 16 for instruction: %v8f32 = call <8 x i1> @llvm.is.fpclass.v8f32(<8 x float> undef, /* (none) */ i32 0)
-; ALL-NEXT:  Cost Model: Found an estimated cost of 32 for instruction: %v16f32 = call <16 x i1> @llvm.is.fpclass.v16f32(<16 x float> undef, /* (none) */ i32 0)
-; ALL-NEXT:  Cost Model: Found an estimated cost of 34 for instruction: %v17f32 = call <17 x i1> @llvm.is.fpclass.v17f32(<17 x float> undef, /* (none) */ i32 0)
+; ALL-NEXT:  Cost Model: Found an estimated cost of 2 for instruction: %v2f32 = call <2 x i1> @llvm.is.fpclass.v2f32(<2 x float> undef, /* (none) */ i32 0)
+; ALL-NEXT:  Cost Model: Found an estimated cost of 3 for instruction: %v3f32 = call <3 x i1> @llvm.is.fpclass.v3f32(<3 x float> undef, /* (none) */ i32 0)
+; ALL-NEXT:  Cost Model: Found an estimated cost of 4 for instruction: %v4f32 = call <4 x i1> @llvm.is.fpclass.v4f32(<4 x float> undef, /* (none) */ i32 0)
+; ALL-NEXT:  Cost Model: Found an estimated cost of 5 for instruction: %v5f32 = call <5 x i1> @llvm.is.fpclass.v5f32(<5 x float> undef, /* (none) */ i32 0)
+; ALL-NEXT:  Cost Model: Found an estimated cost of 8 for instruction: %v8f32 = call <8 x i1> @llvm.is.fpclass.v8f32(<8 x float> undef, /* (none) */ i32 0)
+; ALL-NEXT:  Cost Model: Found an estimated cost of 16 for instruction: %v16f32 = call <16 x i1> @llvm.is.fpclass.v16f32(<16 x float> undef, /* (none) */ i32 0)
+; ALL-NEXT:  Cost Model: Found an estimated cost of 17 for instruction: %v17f32 = call <17 x i1> @llvm.is.fpclass.v17f32(<17 x float> undef, /* (none) */ i32 0)
 ; ALL-NEXT:  Cost Model: Found an estimated cost of 10 for instruction: ret void
 ;
 ; ALL-SIZE-LABEL: 'is_fpclass_f32'
 ; ALL-SIZE-NEXT:  Cost Model: Found an estimated cost of 1 for instruction: %f32 = call i1 @llvm.is.fpclass.f32(float undef, /* (none) */ i32 0)
-; ALL-SIZE-NEXT:  Cost Model: Found an estimated cost of 4 for instruction: %v2f32 = call <2 x i1> @llvm.is.fpclass.v2f32(<2 x float> undef, /* (none) */ i32 0)
-; ALL-SIZE-NEXT:  Cost Model: Found an estimated cost of 6 for instruction: %v3f32 = call <3 x i1> @llvm.is.fpclass.v3f32(<3 x float> undef, /* (none) */ i32 0)
-; ALL-SIZE-NEXT:  Cost Model: Found an estimated cost of 8 for instruction: %v4f32 = call <4 x i1> @llvm.is.fpclass.v4f32(<4 x float> undef, /* (none) */ i32 0)
-; ALL-SIZE-NEXT:  Cost Model: Found an estimated cost of 10 for instruction: %v5f32 = call <5 x i1> @llvm.is.fpclass.v5f32(<5 x float> undef, /* (none) */ i32 0)
-; ALL-SIZE-NEXT:  Cost Model: Found an estimated cost of 16 for instruction: %v8f32 = call <8 x i1> @llvm.is.fpclass.v8f32(<8 x float> undef, /* (none) */ i32 0)
-; ALL-SIZE-NEXT:  Cost Model: Found an estimated cost of 32 for instruction: %v16f32 = call <16 x i1> @llvm.is.fpclass.v16f32(<16 x float> undef, /* (none) */ i32 0)
-; ALL-SIZE-NEXT:  Cost Model: Found an estimated cost of 34 for instruction: %v17f32 = call <17 x i1> @llvm.is.fpclass.v17f32(<17 x float> undef, /* (none) */ i32 0)
+; ALL-SIZE-NEXT:  Cost Model: Found an estimated cost of 2 for instruction: %v2f32 = call <2 x i1> @llvm.is.fpclass.v2f32(<2 x float> undef, /* (none) */ i32 0)
+; ALL-SIZE-NEXT:  Cost Model: Found an estimated cost of 3 for instruction: %v3f32 = call <3 x i1> @llvm.is.fpclass.v3f32(<3 x float> undef, /* (none) */ i32 0)
+; ALL-SIZE-NEXT:  Cost Model: Found an estimated cost of 4 for instruction: %v4f32 = call <4 x i1> @llvm.is.fpclass.v4f32(<4 x float> undef, /* (none) */ i32 0)
+; ALL-SIZE-NEXT:  Cost Model: Found an estimated cost of 5 for instruction: %v5f32 = call <5 x i1> @llvm.is.fpclass.v5f32(<5 x float> undef, /* (none) */ i32 0)
+; ALL-SIZE-NEXT:  Cost Model: Found an estimated cost of 8 for instruction: %v8f32 = call <8 x i1> @llvm.is.fpclass.v8f32(<8 x float> undef, /* (none) */ i32 0)
+; ALL-SIZE-NEXT:  Cost Model: Found an estimated cost of 16 for instruction: %v16f32 = call <16 x i1> @llvm.is.fpclass.v16f32(<16 x float> undef, /* (none) */ i32 0)
+; ALL-SIZE-NEXT:  Cost Model: Found an estimated cost of 17 for instruction: %v17f32 = call <17 x i1> @llvm.is.fpclass.v17f32(<17 x float> undef, /* (none) */ i32 0)
 ; ALL-SIZE-NEXT:  Cost Model: Found an estimated cost of 1 for instruction: ret void
 ;
   %f32 = call i1 @llvm.is.fpclass.f32(float undef, i32 0)
@@ -107,24 +107,24 @@ define void @is_fpclass_f32() {
 define void @is_fpclass_f64() {
 ; ALL-LABEL: 'is_fpclass_f64'
 ; ALL-NEXT:  Cost Model: Found an estimated cost of 1 for instruction: %f64 = call i1 @llvm.is.fpclass.f64(double undef, /* (none) */ i32 0)
-; ALL-NEXT:  Cost Model: Found an estimated cost of 4 for instruction: %v2f64 = call <2 x i1> @llvm.is.fpclass.v2f64(<2 x double> undef, /* (none) */ i32 0)
-; ALL-NEXT:  Cost Model: Found an estimated cost of 6 for instruction: %v3f64 = call <3 x i1> @llvm.is.fpclass.v3f64(<3 x double> undef, /* (none) */ i32 0)
-; ALL-NEXT:  Cost Model: Found an estimated cost of 8 for instruction: %v4f64 = call <4 x i1> @llvm.is.fpclass.v4f64(<4 x double> undef, /* (none) */ i32 0)
-; ALL-NEXT:  Cost Model: Found an estimated cost of 10 for instruction: %v5f64 = call <5 x i1> @llvm.is.fpclass.v5f64(<5 x double> undef, /* (none) */ i32 0)
-; ALL-NEXT:  Cost Model: Found an estimated cost of 16 for instruction: %v8f64 = call <8 x i1> @llvm.is.fpclass.v8f64(<8 x double> undef, /* (none) */ i32 0)
-; ALL-NEXT:  Cost Model: Found an estimated cost of 32 for instruction: %v16f64 = call <16 x i1> @llvm.is.fpclass.v16f64(<16 x double> undef, /* (none) */ i32 0)
-; ALL-NEXT:  Cost Model: Found an estimated cost of 34 for instruction: %v17f64 = call <17 x i1> @llvm.is.fpclass.v17f64(<17 x double> undef, /* (none) */ i32 0)
+; ALL-NEXT:  Cost Model: Found an estimated cost of 2 for instruction: %v2f64 = call <2 x i1> @llvm.is.fpclass.v2f64(<2 x double> undef, /* (none) */ i32 0)
+; ALL-NEXT:  Cost Model: Found an estimated cost of 3 for instruction: %v3f64 = call <3 x i1> @llvm.is.fpclass.v3f64(<3 x double> undef, /* (none) */ i32 0)
+; ALL-NEXT:  Cost Model: Found an estimated cost of 4 for instruction: %v4f64 = call <4 x i1> @llvm.is.fpclass.v4f64(<4 x double> undef, /* (none) */ i32 0)
+; ALL-NEXT:  Cost Model: Found an estimated cost of 5 for instruction: %v5f64 = call <5 x i1> @llvm.is.fpclass.v5f64(<5 x double> undef, /* (none) */ i32 0)
+; ALL-NEXT:  Cost Model: Found an estimated cost of 8 for instruction: %v8f64 = call <8 x i1> @llvm.is.fpclass.v8f64(<8 x double> undef, /* (none) */ i32 0)
+; ALL-NEXT:  Cost Model: Found an estimated cost of 16 for instruction: %v16f64 = call <16 x i1> @llvm.is.fpclass.v16f64(<16 x double> undef, /* (none) */ i32 0)
+; ALL-NEXT:  Cost Model: Found an estimated cost of 17 for instruction: %v17f64 = call <17 x i1> @llvm.is.fpclass.v17f64(<17 x double> undef, /* (none) */ i32 0)
 ; ALL-NEXT:  Cost Model: Found an estimated cost of 10 for instruction: ret void
 ;
 ; ALL-SIZE-LABEL: 'is_fpclass_f64'
 ; ALL-SIZE-NEXT:  Cost Model: Found an estimated cost of 1 for instruction: %f64 = call i1 @llvm.is.fpclass.f64(double undef, /* (none) */ i32 0)
-; ALL-SIZE-NEXT:  Cost Model: Found an estimated cost of 4 for instruction: %v2f64 = call <2 x i1> @llvm.is.fpclass.v2f64(<2 x double> undef, /* (none) */ i32 0)
-; ALL-SIZE-NEXT:  Cost Model: Found an estimated cost of 6 for instruction: %v3f64 = call <3 x i1> @llvm.is.fpclass.v3f64(<3 x double> undef, /* (none) */ i32 0)
-; ALL-SIZE-NEXT:  Cost Model: Found an estimated cost of 8 for instruction: %v4f64 = call <4 x i1> @llvm.is.fpclass.v4f64(<4 x double> undef, /* (none) */ i32 0)
-; ALL-SIZE-NEXT:  Cost Model: Found an estimated cost of 10 for instruction: %v5f64 = call <5 x i1> @llvm.is.fpclass.v5f64(<5 x double> undef, /* (none) */ i32 0)
-; ALL-SIZE-NEXT:  Cost Model: Found an estimated cost of 16 for instruction: %v8f64 = call <8 x i1> @llvm.is.fpclass.v8f64(<8 x double> undef, /* (none) */ i32 0)
-; ALL-SIZE-NEXT:  Cost Model: Found an estimated cost of 32 for instruction: %v16f64 = call <16 x i1> @llvm.is.fpclass.v16f64(<16 x double> undef, /* (none) */ i32 0)
-; ALL-SIZE-NEXT:  Cost Model: Found an estimated cost of 34 for instruction: %v17f64 = call <17 x i1> @llvm.is.fpclass.v17f64(<17 x double> undef, /* (none) */ i32 0)
+; ALL-SIZE-NEXT:  Cost Model: Found an estimated cost of 2 for instruction: %v2f64 = call <2 x i1> @llvm.is.fpclass.v2f64(<2 x double> undef, /* (none) */ i32 0)
+; ALL-SIZE-NEXT:  Cost Model: Found an estimated cost of 3 for instruction: %v3f64 = call <3 x i1> @llvm.is.fpclass.v3f64(<3 x double> undef, /* (none) */ i32 0)
+; ALL-SIZE-NEXT:  Cost Model: Found an estimated cost of 4 for instruction: %v4f64 = call <4 x i1> @llvm.is.fpclass.v4f64(<4 x double> undef, /* (none) */ i32 0)
+; ALL-SIZE-NEXT:  Cost Model: Found an estimated cost of 5 for instruction: %v5f64 = call <5 x i1> @llvm.is.fpclass.v5f64(<5 x double> undef, /* (none) */ i32 0)
+; ALL-SIZE-NEXT:  Cost Model: Found an estimated cost of 8 for instruction: %v8f64 = call <8 x i1> @llvm.is.fpclass.v8f64(<8 x double> undef, /* (none) */ i32 0)
+; ALL-SIZE-NEXT:  Cost Model: Found an estimated cost of 16 for instruction: %v16f64 = call <16 x i1> @llvm.is.fpclass.v16f64(<16 x double> undef, /* (none) */ i32 0)
+; ALL-SIZE-NEXT:  Cost Model: Found an estimated cost of 17 for instruction: %v17f64 = call <17 x i1> @llvm.is.fpclass.v17f64(<17 x double> undef, /* (none) */ i32 0)
 ; ALL-SIZE-NEXT:  Cost Model: Found an estimated cost of 1 for instruction: ret void
 ;
   %f64 = call i1 @llvm.is.fpclass.f64(double undef, i32 0)



More information about the llvm-commits mailing list