HomeSort by relevance Sort by last modified time
    Searched full:cost (Results 1 - 25 of 2224) sorted by null

1 2 3 4 5 6 7 8 91011>>

  /external/llvm/lib/Target/AArch64/
AArch64PerfectShuffle.h 18 // 31 entries have cost 0
19 // 242 entries have cost 1
20 // 1447 entries have cost 2
21 // 3602 entries have cost 3
22 // 1237 entries have cost 4
23 // 2 entries have cost 5
27 135053414U, // <0,0,0,0>: Cost 1 vdup0 LHS
28 1543503974U, // <0,0,0,1>: Cost 2 vext2 <0,0,0,0>, LHS
29 2618572962U, // <0,0,0,2>: Cost 3 vext2 <0,2,0,0>, <0,2,0,0>
30 2568054923U, // <0,0,0,3>: Cost 3 vext1 <3,0,0,0>, <3,0,0,0
    [all...]
  /external/llvm/lib/Target/ARM/
ARMPerfectShuffle.h 18 // 31 entries have cost 0
19 // 242 entries have cost 1
20 // 1447 entries have cost 2
21 // 3602 entries have cost 3
22 // 1237 entries have cost 4
23 // 2 entries have cost 5
27 135053414U, // <0,0,0,0>: Cost 1 vdup0 LHS
28 1543503974U, // <0,0,0,1>: Cost 2 vext2 <0,0,0,0>, LHS
29 2618572962U, // <0,0,0,2>: Cost 3 vext2 <0,2,0,0>, <0,2,0,0>
30 2568054923U, // <0,0,0,3>: Cost 3 vext1 <3,0,0,0>, <3,0,0,0
    [all...]
  /external/clang/test/CodeGenCXX/
array-operator-delete-call.cpp 22 struct COST
24 S *cost; member in struct:COST
28 ~COST();
29 COST();
33 COST::COST()
35 cost = new S[3];
40 COST::~COST()
42 if (cost) {
    [all...]
  /external/llvm/lib/Target/PowerPC/
PPCPerfectShuffle.h 18 // 31 entries have cost 0
19 // 292 entries have cost 1
20 // 1384 entries have cost 2
21 // 3061 entries have cost 3
22 // 1733 entries have cost 4
23 // 60 entries have cost 5
27 202162278U, // <0,0,0,0>: Cost 1 vspltisw0 LHS
28 1140850790U, // <0,0,0,1>: Cost 2 vmrghw <0,0,0,0>, LHS
29 2617247181U, // <0,0,0,2>: Cost 3 vsldoi4 <0,0,0,0>, <2,0,3,0>
30 2635163787U, // <0,0,0,3>: Cost 3 vsldoi4 <3,0,0,0>, <3,0,0,0
    [all...]
  /external/llvm/test/Analysis/CostModel/X86/
cmp.ll 1 ; RUN: opt < %s -cost-model -analyze -mtriple=x86_64-apple-macosx10.8.0 -mcpu=corei7-avx | FileCheck -check-prefix=CHECK -check-prefix=AVX1 %s
2 ; RUN: opt < %s -cost-model -analyze -mtriple=x86_64-apple-macosx10.8.0 -mcpu=core-avx2 | FileCheck -check-prefix=CHECK -check-prefix=AVX2 %s
3 ; RUN: opt < %s -cost-model -analyze -mtriple=x86_64-apple-macosx10.8.0 -mcpu=knl | FileCheck -check-prefix=CHECK -check-prefix=AVX512 %s
10 ;AVX1: cost of 1 {{.*}} fcmp
11 ;AVX2: cost of 1 {{.*}} fcmp
13 ;AVX1: cost of 1 {{.*}} fcmp
14 ;AVX2: cost of 1 {{.*}} fcmp
16 ;AVX1: cost of 1 {{.*}} fcmp
17 ;AVX2: cost of 1 {{.*}} fcmp
19 ;AVX1: cost of 1 {{.*}} fcm
    [all...]
load_store.ll 1 ; RUN: opt < %s -cost-model -analyze -mtriple=x86_64-apple-macosx10.8.0 -mcpu=corei7-avx | FileCheck %s
8 ;CHECK: cost of 1 {{.*}} store
10 ;CHECK: cost of 1 {{.*}} store
12 ;CHECK: cost of 1 {{.*}} store
14 ;CHECK: cost of 1 {{.*}} store
16 ;CHECK: cost of 2 {{.*}} store
19 ;CHECK: cost of 1 {{.*}} store
21 ;CHECK: cost of 1 {{.*}} store
23 ;CHECK: cost of 2 {{.*}} store
26 ;CHECK: cost of 1 {{.*}} stor
    [all...]
arith.ll 1 ; RUN: opt < %s -cost-model -analyze -mtriple=x86_64-apple-macosx10.8.0 -mcpu=corei7-avx | FileCheck %s
2 ; RUN: opt < %s -cost-model -analyze -mtriple=x86_64-apple-macosx10.8.0 -mcpu=core2 | FileCheck %s --check-prefix=SSE3
3 ; RUN: opt < %s -cost-model -analyze -mtriple=x86_64-apple-macosx10.8.0 -mcpu=core-avx2 | FileCheck %s --check-prefix=AVX2
9 ;CHECK: cost of 1 {{.*}} add
11 ;CHECK: cost of 4 {{.*}} add
13 ;CHECK: cost of 1 {{.*}} add
15 ;CHECK: cost of 4 {{.*}} add
17 ;CHECK: cost of 8 {{.*}} add
19 ;CHECK: cost of 0 {{.*}} ret
25 ;CHECK: cost of 1 {{.*}} xo
    [all...]
uitofp.ll 1 ; RUN: opt -mtriple=x86_64-apple-darwin -mattr=+sse2 -cost-model -analyze < %s | FileCheck --check-prefix=SSE --check-prefix=SSE2 %s
2 ; RUN: opt -mtriple=x86_64-apple-darwin -mattr=+avx -cost-model -analyze < %s | FileCheck --check-prefix=AVX --check-prefix=AVX1 %s
3 ; RUN: opt -mtriple=x86_64-apple-darwin -mattr=+avx2 -cost-model -analyze < %s | FileCheck --check-prefix=AVX --check-prefix=AVX2 %s
4 ; RUN: opt -mtriple=x86_64-apple-darwin -mattr=+avx512f -cost-model -analyze < %s | FileCheck --check-prefix=AVX512F %s
5 ; RUN: opt -mtriple=x86_64-apple-darwin -mattr=+avx512dq -cost-model -analyze < %s | FileCheck --check-prefix=AVX512DQ %s
9 ; SSE2: cost of 20 {{.*}} uitofp
12 ; AVX1: cost of 4 {{.*}} uitofp
15 ; AVX2: cost of 4 {{.*}} uitofp
18 ; AVX512F: cost of 2 {{.*}} uitofp
25 ; SSE2: cost of 40 {{.*}} uitof
    [all...]
sitofp.ll 1 ; RUN: opt -mtriple=x86_64-apple-darwin -mattr=+sse2 -cost-model -analyze < %s | FileCheck --check-prefix=SSE --check-prefix=SSE2 %s
2 ; RUN: opt -mtriple=x86_64-apple-darwin -mattr=+avx -cost-model -analyze < %s | FileCheck --check-prefix=AVX --check-prefix=AVX1 %s
3 ; RUN: opt -mtriple=x86_64-apple-darwin -mattr=+avx2 -cost-model -analyze < %s | FileCheck --check-prefix=AVX --check-prefix=AVX2 %s
4 ; RUN: opt -mtriple=x86_64-apple-darwin -mattr=+avx512f -cost-model -analyze < %s | FileCheck --check-prefix=AVX512F %s
8 ; SSE2: cost of 20 {{.*}} sitofp
11 ; AVX1: cost of 4 {{.*}} sitofp
14 ; AVX2: cost of 4 {{.*}} sitofp
17 ; AVX512F: cost of 4 {{.*}} sitofp
24 ; SSE2: cost of 40 {{.*}} sitofp
27 ; AVX1: cost of 3 {{.*}} sitof
    [all...]
vshift-lshr-cost.ll 1 ; RUN: opt < %s -mtriple=x86_64-unknown-linux-gnu -mcpu=corei7 -mattr=+sse2,-sse4.1 -cost-model -analyze | FileCheck %s -check-prefix=CHECK -check-prefix=SSE2
2 ; RUN: opt < %s -mtriple=x86_64-unknown-linux-gnu -mcpu=corei7 -cost-model -analyze | FileCheck %s -check-prefix=CHECK -check-prefix=SSE41
3 ; RUN: opt < %s -mtriple=x86_64-unknown-linux-gnu -mcpu=corei7-avx -cost-model -analyze | FileCheck %s -check-prefix=CHECK -check-prefix=AVX
4 ; RUN: opt < %s -mtriple=x86_64-unknown-linux-gnu -mcpu=core-avx2 -cost-model -analyze | FileCheck %s -check-prefix=CHECK -check-prefix=AVX2
5 ; RUN: opt < %s -mtriple=x86_64-unknown-linux-gnu -mcpu=bdver2 -cost-model -analyze | FileCheck %s -check-prefix=CHECK -check-prefix=XOP -check-prefix=XOPAVX
6 ; RUN: opt < %s -mtriple=x86_64-unknown-linux-gnu -mcpu=bdver4 -cost-model -analyze | FileCheck %s -check-prefix=CHECK -check-prefix=XOP -check-prefix=XOPAVX2
8 ; Verify the cost of vector logical shift right instructions.
15 ; CHECK: 'Cost Model Analysis' for function 'var_shift_v2i64':
16 ; SSE2: Found an estimated cost of 4 for instruction: %shift
17 ; SSE41: Found an estimated cost of 4 for instruction: %shif
    [all...]
vshift-shl-cost.ll 1 ; RUN: opt < %s -mtriple=x86_64-unknown-linux-gnu -mcpu=corei7 -mattr=+sse2,-sse4.1 -cost-model -analyze | FileCheck %s -check-prefix=CHECK -check-prefix=SSE2
2 ; RUN: opt < %s -mtriple=x86_64-unknown-linux-gnu -mcpu=corei7 -cost-model -analyze | FileCheck %s -check-prefix=CHECK -check-prefix=SSE41
3 ; RUN: opt < %s -mtriple=x86_64-unknown-linux-gnu -mcpu=corei7-avx -cost-model -analyze | FileCheck %s -check-prefix=CHECK -check-prefix=AVX
4 ; RUN: opt < %s -mtriple=x86_64-unknown-linux-gnu -mcpu=core-avx2 -cost-model -analyze | FileCheck %s -check-prefix=CHECK -check-prefix=AVX2
5 ; RUN: opt < %s -mtriple=x86_64-unknown-linux-gnu -mcpu=bdver2 -cost-model -analyze | FileCheck %s -check-prefix=CHECK -check-prefix=XOP -check-prefix=XOPAVX
6 ; RUN: opt < %s -mtriple=x86_64-unknown-linux-gnu -mcpu=bdver4 -cost-model -analyze | FileCheck %s -check-prefix=CHECK -check-prefix=XOP -check-prefix=XOPAVX2
8 ; Verify the cost of vector shift left instructions.
16 ; CHECK: 'Cost Model Analysis' for function 'var_shift_v2i64':
17 ; SSE2: Found an estimated cost of 4 for instruction: %shift
18 ; SSE41: Found an estimated cost of 4 for instruction: %shif
    [all...]
cast.ll 1 ; RUN: opt < %s -cost-model -analyze -mtriple=x86_64-apple-macosx10.8.0 -mcpu=knl | FileCheck %s --check-prefix=CHECK --check-prefix=CHECK-AVX512
2 ; RUN: opt < %s -cost-model -analyze -mtriple=x86_64-apple-macosx10.8.0 -mcpu=core-avx2 | FileCheck %s --check-prefix=CHECK --check-prefix=CHECK-AVX2
3 ; RUN: opt < %s -cost-model -analyze -mtriple=x86_64-apple-macosx10.8.0 -mcpu=corei7-avx | FileCheck %s --check-prefix=CHECK --check-prefix=CHECK-AVX
11 ;CHECK: cost of 1 {{.*}} zext
13 ;CHECK: cost of 2 {{.*}} sext
15 ;CHECK: cost of 0 {{.*}} trunc
19 ;CHECK-NOT: cost of 1 {{.*}} zext
21 ;CHECK-NOT: cost of 2 {{.*}} sext
23 ;CHECK-NOT: cost of 2 {{.*}} trunc
28 ;CHECK: cost of 1 {{.*}} zex
    [all...]
div.ll 1 ; RUN: opt -mtriple=x86_64-apple-darwin -mcpu=core2 -cost-model -analyze < %s | FileCheck --check-prefix=SSE2 %s
2 ; RUN: opt -mtriple=x86_64-apple-darwin -mcpu=core-avx2 -cost-model -analyze < %s | FileCheck --check-prefix=AVX2 %s
7 ; SSE2: cost of 320 {{.*}} sdiv
9 ; SSE2: cost of 160 {{.*}} sdiv
11 ; SSE2: cost of 80 {{.*}} sdiv
13 ; SSE2: cost of 40 {{.*}} sdiv
21 ; AVX2: cost of 640 {{.*}} sdiv
23 ; AVX2: cost of 320 {{.*}} sdiv
25 ; AVX2: cost of 160 {{.*}} sdiv
27 ; AVX2: cost of 80 {{.*}} sdi
    [all...]
vshift-ashr-cost.ll 1 ; RUN: opt < %s -mtriple=x86_64-unknown-linux-gnu -mcpu=corei7 -mattr=+sse2,-sse4.1 -cost-model -analyze | FileCheck %s -check-prefix=CHECK -check-prefix=SSE2
2 ; RUN: opt < %s -mtriple=x86_64-unknown-linux-gnu -mcpu=corei7 -cost-model -analyze | FileCheck %s -check-prefix=CHECK -check-prefix=SSE41
3 ; RUN: opt < %s -mtriple=x86_64-unknown-linux-gnu -mcpu=corei7-avx -cost-model -analyze | FileCheck %s -check-prefix=CHECK -check-prefix=AVX
4 ; RUN: opt < %s -mtriple=x86_64-unknown-linux-gnu -mcpu=core-avx2 -cost-model -analyze | FileCheck %s -check-prefix=CHECK -check-prefix=AVX2
5 ; RUN: opt < %s -mtriple=x86_64-unknown-linux-gnu -mcpu=bdver2 -cost-model -analyze | FileCheck %s -check-prefix=CHECK -check-prefix=XOP -check-prefix=XOPAVX
6 ; RUN: opt < %s -mtriple=x86_64-unknown-linux-gnu -mcpu=bdver4 -cost-model -analyze | FileCheck %s -check-prefix=CHECK -check-prefix=XOP -check-prefix=XOPAVX2
8 ; Verify the cost of vector arithmetic shift right instructions.
15 ; CHECK: 'Cost Model Analysis' for function 'var_shift_v2i64':
16 ; SSE2: Found an estimated cost of 12 for instruction: %shift
17 ; SSE41: Found an estimated cost of 12 for instruction: %shif
    [all...]
vselect-cost.ll 1 ; RUN: opt < %s -mtriple=x86_64-unknown-linux-gnu -mcpu=corei7 -mattr=+sse2,-sse4.1 -cost-model -analyze | FileCheck %s -check-prefix=CHECK -check-prefix=SSE2
2 ; RUN: opt < %s -mtriple=x86_64-unknown-linux-gnu -mcpu=corei7 -cost-model -analyze | FileCheck %s -check-prefix=CHECK -check-prefix=SSE41
3 ; RUN: opt < %s -mtriple=x86_64-unknown-linux-gnu -mcpu=corei7-avx -cost-model -analyze | FileCheck %s -check-prefix=CHECK -check-prefix=AVX
4 ; RUN: opt < %s -mtriple=x86_64-unknown-linux-gnu -mcpu=core-avx2 -cost-model -analyze | FileCheck %s -check-prefix=CHECK -check-prefix=AVX2
7 ; Verify the cost of vector select instructions.
13 ; CHECK: Printing analysis 'Cost Model Analysis' for function 'test_2i64':
14 ; SSE2: Cost Model: {{.*}} 1 for instruction: %sel = select <2 x i1>
15 ; SSE41: Cost Model: {{.*}} 1 for instruction: %sel = select <2 x i1>
16 ; AVX: Cost Model: {{.*}} 1 for instruction: %sel = select <2 x i1>
17 ; AVX2: Cost Model: {{.*}} 1 for instruction: %sel = select <2 x i1
    [all...]
alternate-shuffle-cost.ll 1 ; RUN: opt < %s -mtriple=x86_64-unknown-linux-gnu -mattr=+sse2,-ssse3 -cost-model -analyze | FileCheck %s -check-prefix=CHECK -check-prefix=SSE2
2 ; RUN: opt < %s -mtriple=x86_64-unknown-linux-gnu -mattr=+sse2,+sse3,+ssse3 -cost-model -analyze | FileCheck %s -check-prefix=CHECK -check-prefix=SSSE3
3 ; RUN: opt < %s -mtriple=x86_64-unknown-linux-gnu -mcpu=corei7 -cost-model -analyze | FileCheck %s -check-prefix=CHECK -check-prefix=SSE41
4 ; RUN: opt < %s -mtriple=x86_64-unknown-linux-gnu -mcpu=corei7-avx -cost-model -analyze | FileCheck %s -check-prefix=CHECK -check-prefix=AVX
5 ; RUN: opt < %s -mtriple=x86_64-unknown-linux-gnu -mcpu=core-avx2 -cost-model -analyze | FileCheck %s -check-prefix=CHECK -check-prefix=AVX2
8 ; Verify the cost model for alternate shuffles.
18 ; CHECK: Printing analysis 'Cost Model Analysis' for function 'test_v2i32':
19 ; SSE2: Cost Model: {{.*}} 1 for instruction: %1 = shufflevector
20 ; SSSE3: Cost Model: {{.*}} 1 for instruction: %1 = shufflevector
21 ; SSE41: Cost Model: {{.*}} 1 for instruction: %1 = shufflevecto
    [all...]
i32.ll 1 ; RUN: opt < %s -cost-model -analyze -mtriple=i386 -mcpu=corei7-avx | FileCheck %s
3 ;CHECK: cost of 0 {{.*}} ret
vdiv-cost.ll 1 ; RUN: opt < %s -mtriple=x86_64-unknown-linux-gnu -mcpu=corei7 -mattr=+sse2,-sse4.1 -cost-model -analyze | FileCheck %s -check-prefix=CHECK -check-prefix=SSE2
2 ; RUN: opt < %s -mtriple=x86_64-unknown-linux-gnu -mcpu=core-avx2 -cost-model -analyze | FileCheck %s -check-prefix=CHECK -check-prefix=AVX2
8 ; CHECK: 'Cost Model Analysis' for function 'test1':
9 ; SSE2: Found an estimated cost of 15 for instruction: %div
10 ; AVX2: Found an estimated cost of 15 for instruction: %div
17 ; CHECK: 'Cost Model Analysis' for function 'test2':
18 ; SSE2: Found an estimated cost of 30 for instruction: %div
19 ; AVX2: Found an estimated cost of 15 for instruction: %div
26 ; CHECK: 'Cost Model Analysis' for function 'test3':
27 ; SSE2: Found an estimated cost of 6 for instruction: %di
    [all...]
insert-extract-at-zero.ll 1 ; RUN: opt < %s -cost-model -analyze -mtriple=x86_64-apple-macosx10.8.0 -mcpu=corei7-avx | FileCheck %s
7 ;CHECK: cost of 0 {{.*}} extract
9 ;CHECK: cost of 1 {{.*}} extract
11 ;CHECK: cost of 1 {{.*}} extract
14 ;CHECK: cost of 0 {{.*}} extract
16 ;CHECK: cost of 1 {{.*}} extract
19 ;CHECK: cost of 1 {{.*}} extract
22 ;CHECK: cost of 0 {{.*}} insert
24 ;CHECK: cost of 1 {{.*}} insert
26 ;CHECK: cost of 1 {{.*}} inser
    [all...]
  /external/llvm/lib/Analysis/
TargetTransformInfo.cpp 51 int Cost = TTIImpl->getOperationCost(Opcode, Ty, OpTy);
52 assert(Cost >= 0 && "TTI should not produce negative costs!");
53 return Cost;
57 int Cost = TTIImpl->getCallCost(FTy, NumArgs);
58 assert(Cost >= 0 && "TTI should not produce negative costs!");
59 return Cost;
64 int Cost = TTIImpl->getCallCost(F, Arguments);
65 assert(Cost >= 0 && "TTI should not produce negative costs!");
66 return Cost;
71 int Cost = TTIImpl->getIntrinsicCost(IID, RetTy, Arguments)
    [all...]
  /external/llvm/test/CodeGen/ARM/
vcvt-cost.ll 1 ; We currently estimate the cost of sext/zext/trunc v8(v16)i32 <-> v8(v16)i8
2 ; instructions as expensive. If lowering is improved the cost model needs to
4 ; RUN: opt < %s -cost-model -analyze -mtriple=thumbv7-apple-ios6.0.0 -march=arm -mcpu=cortex-a8 | FileCheck %s --check-prefix=COST
13 ; COST: func_cvt5
14 ; COST: cost of 3 {{.*}} sext
19 ;; We currently estimate the cost of this instruction as expensive. If lowering
20 ;; is improved the cost needs to change.
29 ; COST: func_cvt
    [all...]
  /external/llvm/test/Analysis/CostModel/AArch64/
select.ll 1 ; RUN: opt < %s -cost-model -analyze -mtriple=arm64-apple-ios -mcpu=cyclone | FileCheck %s
7 ; CHECK: cost of 1 {{.*}} select
9 ; CHECK: cost of 1 {{.*}} select
11 ; CHECK: cost of 1 {{.*}} select
13 ; CHECK: cost of 1 {{.*}} select
15 ; CHECK: cost of 1 {{.*}} select
17 ; CHECK: cost of 1 {{.*}} select
20 ; CHECK: cost of 16 {{.*}} select
23 ; CHECK: cost of 8 {{.*}} select
25 ; CHECK: cost of 16 {{.*}} selec
    [all...]
  /external/llvm/test/Analysis/CostModel/PowerPC/
load_store.ll 1 ; RUN: opt < %s -cost-model -analyze -mtriple=powerpc64-unknown-linux-gnu -mcpu=g5 | FileCheck %s
7 ; CHECK: cost of 1 {{.*}} store
9 ; CHECK: cost of 1 {{.*}} store
11 ; CHECK: cost of 1 {{.*}} store
13 ; CHECK: cost of 2 {{.*}} store
15 ; CHECK: cost of 4 {{.*}} store
21 ; CHECK: cost of 1 {{.*}} load
23 ; CHECK: cost of 1 {{.*}} load
25 ; CHECK: cost of 1 {{.*}} load
27 ; CHECK: cost of 2 {{.*}} loa
    [all...]
ext.ll 1 ; RUN: opt < %s -cost-model -analyze -mtriple=powerpc64-unknown-linux-gnu -mcpu=pwr7 -mattr=+vsx | FileCheck %s
7 ; CHECK: cost of 1 {{.*}} sext
10 ; CHECK: cost of 1 {{.*}} sext
13 ; CHECK: cost of 1 {{.*}} sext
16 ; CHECK: cost of 112 {{.*}} sext
  /external/llvm/include/llvm/Analysis/
InlineCost.h 1 //===- InlineCost.h - Cost analysis for inliner -----------------*- C++ -*-===//
41 /// \brief Represents the cost of inlining a function.
44 /// "never" be inlined. Otherwise, the cost represents a unitless amount;
49 /// directly tested to determine if inlining should occur given the cost and
50 /// threshold for this cost metric.
57 /// \brief The estimated cost of inlining this callsite.
58 const int Cost;
60 /// \brief The adjusted threshold against which this cost was computed.
64 InlineCost(int Cost, int Threshold) : Cost(Cost), Threshold(Threshold) {
    [all...]

Completed in 230 milliseconds

1 2 3 4 5 6 7 8 91011>>