Home
last modified time | relevance | path

Searched refs:cost (Results 1 – 25 of 397) sorted by relevance

12345678910>>...16

/external/llvm/test/Analysis/CostModel/ARM/
Dcast.ll1 ; RUN: opt < %s -cost-model -analyze -mtriple=thumbv7-apple-ios6.0.0 -mcpu=cortex-a8 | FileCheck %s
8 ; CHECK: cost of 1 {{.*}} sext
10 ; CHECK: cost of 1 {{.*}} zext
12 ; CHECK: cost of 1 {{.*}} sext
14 ; CHECK: cost of 1 {{.*}} zext
16 ; CHECK: cost of 1 {{.*}} sext
18 ; CHECK: cost of 1 {{.*}} zext
20 ; CHECK: cost of 1 {{.*}} sext
22 ; CHECK: cost of 1 {{.*}} zext
24 ; CHECK: cost of 0 {{.*}} trunc
[all …]
Dselect.ll1 ; RUN: opt < %s -cost-model -analyze -mtriple=thumbv7-apple-ios6.0.0 -mcpu=swift | FileCheck %s
8 ; CHECK: cost of 1 {{.*}} select
10 ; CHECK: cost of 1 {{.*}} select
12 ; CHECK: cost of 1 {{.*}} select
14 ; CHECK: cost of 2 {{.*}} select
16 ; CHECK: cost of 1 {{.*}} select
18 ; CHECK: cost of 1 {{.*}} select
22 ; CHECK: cost of 1 {{.*}} select
24 ; CHECK: cost of 1 {{.*}} select
26 ; CHECK: cost of 1 {{.*}} select
[all …]
Ddivrem.ll1 ; RUN: opt < %s -cost-model -analyze -mtriple=thumbv7-apple-ios6.0.0 -mcpu=cortex-a9 | FileCheck %s
5 ; CHECK: cost of 40 {{.*}} sdiv
12 ; CHECK: cost of 40 {{.*}} sdiv
19 ; CHECK: cost of 40 {{.*}} sdiv
26 ; CHECK: cost of 40 {{.*}} sdiv
33 ; CHECK: cost of 10 {{.*}} sdiv
40 ; CHECK: cost of 10 {{.*}} sdiv
47 ; CHECK: cost of 80 {{.*}} sdiv
54 ; CHECK: cost of 80 {{.*}} sdiv
61 ; CHECK: cost of 10 {{.*}} sdiv
[all …]
Dgep.ll1 ; RUN: opt -cost-model -analyze -mtriple=thumbv7-apple-ios6.0.0 -mcpu=swift < %s | FileCheck %s
9 ;CHECK: cost of 1 for instruction: {{.*}} getelementptr inbounds i8, i8*
11 ;CHECK: cost of 1 for instruction: {{.*}} getelementptr inbounds i16, i16*
13 ;CHECK: cost of 1 for instruction: {{.*}} getelementptr inbounds i32, i32*
16 ;CHECK: cost of 1 for instruction: {{.*}} getelementptr inbounds i64, i64*
21 ;CHECK: cost of 1 for instruction: {{.*}} getelementptr inbounds float, float*
23 ;CHECK: cost of 1 for instruction: {{.*}} getelementptr inbounds double, double*
28 ;CHECK: cost of 1 for instruction: {{.*}} getelementptr inbounds <4 x i8>, <4 x i8>*
30 ;CHECK: cost of 1 for instruction: {{.*}} getelementptr inbounds <4 x i16>, <4 x i16>*
32 ;CHECK: cost of 1 for instruction: {{.*}} getelementptr inbounds <4 x i32>, <4 x i32>*
[all …]
Dshuffle.ll1 ; RUN: opt < %s -cost-model -analyze -mtriple=thumbv7-apple-ios6.0.0 -mcpu=swift | FileCheck %s
13 ; CHECK: cost of 1 {{.*}} shuffle
15 ; CHECK: cost of 1 {{.*}} shuffle
17 ; CHECK: cost of 1 {{.*}} shuffle
19 ; CHECK: cost of 2 {{.*}} shuffle
22 ; CHECK: cost of 1 {{.*}} shuffle
24 ; CHECK: cost of 1 {{.*}} shuffle
26 ; CHECK: cost of 2 {{.*}} shuffle
29 ; CHECK: cost of 1 {{.*}} shuffle
31 ; CHECK: cost of 2 {{.*}} shuffle
[all …]
/external/llvm/test/Analysis/CostModel/X86/
Dcast.ll1 ; RUN: opt < %s -cost-model -analyze -mtriple=x86_64-apple-macosx10.8.0 -mcpu=knl | FileCheck %s -…
2 ; RUN: opt < %s -cost-model -analyze -mtriple=x86_64-apple-macosx10.8.0 -mcpu=core-avx2 | FileChec…
3 ; RUN: opt < %s -cost-model -analyze -mtriple=x86_64-apple-macosx10.8.0 -mcpu=corei7-avx | FileChe…
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 {{.*}} zext
[all …]
Darith.ll1 ; RUN: opt < %s -cost-model -analyze -mtriple=x86_64-apple-macosx10.8.0 -mcpu=corei7-avx | FileChe…
2 ; RUN: opt < %s -cost-model -analyze -mtriple=x86_64-apple-macosx10.8.0 -mcpu=core2 | FileCheck %s…
3 ; RUN: opt < %s -cost-model -analyze -mtriple=x86_64-apple-macosx10.8.0 -mcpu=core-avx2 | FileChec…
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 {{.*}} xor
[all …]
Dcmp.ll1 ; RUN: opt < %s -cost-model -analyze -mtriple=x86_64-apple-macosx10.8.0 -mcpu=corei7-avx | FileChe…
2 ; RUN: opt < %s -cost-model -analyze -mtriple=x86_64-apple-macosx10.8.0 -mcpu=core-avx2 | FileChec…
3 ; RUN: opt < %s -cost-model -analyze -mtriple=x86_64-apple-macosx10.8.0 -mcpu=knl | FileCheck -che…
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 {{.*}} fcmp
[all …]
Dload_store.ll1 ; RUN: opt < %s -cost-model -analyze -mtriple=x86_64-apple-macosx10.8.0 -mcpu=corei7-avx | FileChe…
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 {{.*}} store
[all …]
Dvshift-cost.ll1 ; RUN: opt < %s -mtriple=x86_64-unknown-linux-gnu -mcpu=corei7 -mattr=+sse2,-sse4.1 -cost-model -an…
2 ; RUN: opt < %s -mtriple=x86_64-unknown-linux-gnu -mcpu=corei7 -cost-model -analyze | FileCheck %s …
3 ; RUN: opt < %s -mtriple=x86_64-unknown-linux-gnu -mcpu=corei7-avx -cost-model -analyze | FileCheck…
4 ; RUN: opt < %s -mtriple=x86_64-unknown-linux-gnu -mcpu=core-avx2 -cost-model -analyze | FileCheck …
7 ; Verify the cost of vector shift left instructions.
17 ; CHECK: Found an estimated cost of 1 for instruction: %shl
25 ; CHECK: Found an estimated cost of 1 for instruction: %shl
29 ; Make sure that the estimated cost is always 1 except for the case where
38 ; SSE2: Found an estimated cost of 6 for instruction: %shl
39 ; SSE41: Found an estimated cost of 1 for instruction: %shl
[all …]
Dsitofp.ll1 ; RUN: opt -mtriple=x86_64-apple-darwin -mcpu=core2 -cost-model -analyze < %s | FileCheck --check-p…
2 ; RUN: opt -mtriple=x86_64-apple-darwin -mcpu=knl -cost-model -analyze < %s | FileCheck --check-pre…
6 ; SSE2: cost of 20 {{.*}} sitofp
13 ; SSE2: cost of 40 {{.*}} sitofp
20 ; SSE2: cost of 80 {{.*}} sitofp
27 ; SSE2: cost of 160 {{.*}} sitofp
34 ; SSE2: cost of 320 {{.*}} sitofp
41 ; SSE2: cost of 20 {{.*}} sitofp
48 ; SSE2: cost of 40 {{.*}} sitofp
55 ; SSE2: cost of 80 {{.*}} sitofp
[all …]
Dinsert-extract-at-zero.ll1 ; RUN: opt < %s -cost-model -analyze -mtriple=x86_64-apple-macosx10.8.0 -mcpu=corei7-avx | FileChe…
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 {{.*}} insert
[all …]
Duitofp.ll2 ; RUN: opt -mtriple=x86_64-apple-darwin -mcpu=core2 -cost-model -analyze < %s | FileCheck --check-p…
7 ; RUN: opt -mtriple=x86_64-apple-darwin -mcpu=core-avx2 -cost-model -analyze < %s
11 ; SSE2: cost of 20 {{.*}} uitofp
22 ; SSE2: cost of 40 {{.*}} uitofp
33 ; SSE2: cost of 80 {{.*}} uitofp
44 ; SSE2: cost of 160 {{.*}} uitofp
55 ; SSE2: cost of 320 {{.*}} uitofp
66 ; SSE2: cost of 20 {{.*}} uitofp
77 ; SSE2: cost of 40 {{.*}} uitofp
88 ; SSE2: cost of 80 {{.*}} uitofp
[all …]
Dvdiv-cost.ll1 ; RUN: opt < %s -mtriple=x86_64-unknown-linux-gnu -mcpu=corei7 -mattr=+sse2,-sse4.1 -cost-model -an…
2 ; RUN: opt < %s -mtriple=x86_64-unknown-linux-gnu -mcpu=core-avx2 -cost-model -analyze | FileCheck …
9 ; SSE2: Found an estimated cost of 15 for instruction: %div
10 ; AVX2: Found an estimated cost of 15 for instruction: %div
18 ; SSE2: Found an estimated cost of 30 for instruction: %div
19 ; AVX2: Found an estimated cost of 15 for instruction: %div
27 ; SSE2: Found an estimated cost of 6 for instruction: %div
28 ; AVX2: Found an estimated cost of 6 for instruction: %div
36 ; SSE2: Found an estimated cost of 12 for instruction: %div
37 ; AVX2: Found an estimated cost of 6 for instruction: %div
[all …]
Dvectorized-loop.ll1 ; RUN: opt < %s -cost-model -analyze -mtriple=x86_64-apple-macosx10.8.0 -mcpu=corei7-avx | FileChe…
8 ;CHECK: cost of 1 {{.*}} icmp
13 ;CHECK: cost of 1 {{.*}} sext
18 ;CHECK: cost of 1 {{.*}} add
21 ;CHECK: cost of 1 {{.*}} icmp
29 ;CHECK: cost of 0 {{.*}} bitcast
31 ;CHECK: cost of 2 {{.*}} load
33 ;CHECK: cost of 4 {{.*}} mul
37 ;CHECK: cost of 2 {{.*}} load
39 ;CHECK: cost of 4 {{.*}} add
[all …]
Ddiv.ll1 ; RUN: opt -mtriple=x86_64-apple-darwin -mcpu=core2 -cost-model -analyze < %s | FileCheck --check-p…
2 ; RUN: opt -mtriple=x86_64-apple-darwin -mcpu=core-avx2 -cost-model -analyze < %s | FileCheck --che…
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 {{.*}} sdiv
Dgep.ll1 ; RUN: opt < %s -cost-model -analyze -mtriple=x86_64-apple-macosx10.8.0 -mcpu=corei7-avx | FileChe…
10 ;CHECK: cost of 0 for instruction: {{.*}} getelementptr inbounds i8, i8*
12 ;CHECK: cost of 0 for instruction: {{.*}} getelementptr inbounds i16, i16*
14 ;CHECK: cost of 0 for instruction: {{.*}} getelementptr inbounds i32, i32*
16 ;CHECK: cost of 0 for instruction: {{.*}} getelementptr inbounds i64, i64*
19 ;CHECK: cost of 0 for instruction: {{.*}} getelementptr inbounds float, float*
21 ;CHECK: cost of 0 for instruction: {{.*}} getelementptr inbounds double, double*
24 ; Vector geps should also have zero cost.
25 ;CHECK: cost of 0 for instruction: {{.*}} getelementptr inbounds <4 x i8>, <4 x i8>*
27 ;CHECK: cost of 0 for instruction: {{.*}} getelementptr inbounds <4 x i16>, <4 x i16>*
[all …]
Dscalarize.ll1 ; RUN: opt < %s -cost-model -analyze -mtriple=i386 -mcpu=corei7-avx | FileCheck %s -check-prefix=C…
2 ; RUN: opt < %s -cost-model -analyze -mtriple=x86_64-apple-macosx10.8.0 -mcpu=corei7-avx | FileChe…
24 ; CHECK32: cost of 12 {{.*}}bswap.v4i32
25 ; CHECK64: cost of 12 {{.*}}bswap.v4i32
27 ; CHECK32: cost of 10 {{.*}}bswap.v2i64
28 ; CHECK64: cost of 6 {{.*}}bswap.v2i64
31 ; CHECK32: cost of 12 {{.*}}ctpop.v4i32
32 ; CHECK64: cost of 12 {{.*}}ctpop.v4i32
34 ; CHECK32: cost of 10 {{.*}}ctpop.v2i64
35 ; CHECK64: cost of 6 {{.*}}ctpop.v2i64
Dtestshiftshl.ll2 ; RUN: opt -mtriple=x86_64-apple-darwin -mcpu=core2 -cost-model -analyze < %s | FileCheck --check-p…
8 ; SSE2: cost of 20 {{.*}} shl
20 ; SSE2: cost of 10 {{.*}} shl
32 ; SSE2: cost of 80 {{.*}} shl
44 ; SSE2: cost of 160 {{.*}} shl
56 ; SSE2: cost of 320 {{.*}} shl
68 ; SSE2: cost of 20 {{.*}} shl
80 ; SSE2: cost of 10 {{.*}} shl
92 ; SSE2: cost of 20 {{.*}} shl
104 ; SSE2: cost of 40 {{.*}} shl
[all …]
Dtestshiftashr.ll2 ; RUN: opt -mtriple=x86_64-apple-darwin -mcpu=core2 -cost-model -analyze < %s | FileCheck --check-p…
8 ; SSE2: cost of 20 {{.*}} ashr
20 ; SSE2: cost of 40 {{.*}} ashr
32 ; SSE2: cost of 80 {{.*}} ashr
44 ; SSE2: cost of 160 {{.*}} ashr
56 ; SSE2: cost of 320 {{.*}} ashr
68 ; SSE2: cost of 20 {{.*}} ashr
80 ; SSE2: cost of 40 {{.*}} ashr
92 ; SSE2: cost of 80 {{.*}} ashr
104 ; SSE2: cost of 160 {{.*}} ashr
[all …]
Dtestshiftlshr.ll2 ; RUN: opt -mtriple=x86_64-apple-darwin -mcpu=core2 -cost-model -analyze < %s | FileCheck --check-p…
8 ; SSE2: cost of 20 {{.*}} lshr
20 ; SSE2: cost of 40 {{.*}} lshr
32 ; SSE2: cost of 80 {{.*}} lshr
44 ; SSE2: cost of 160 {{.*}} lshr
56 ; SSE2: cost of 320 {{.*}} lshr
68 ; SSE2: cost of 20 {{.*}} lshr
80 ; SSE2: cost of 40 {{.*}} lshr
92 ; SSE2: cost of 80 {{.*}} lshr
104 ; SSE2: cost of 160 {{.*}} lshr
[all …]
/external/ceres-solver/internal/ceres/
Dresidual_block_test.cc107 double cost; in TEST() local
108 residual_block.Evaluate(true, &cost, NULL, NULL, scratch); in TEST()
109 EXPECT_EQ(0.5 * (0*0 + 1*1 + 2*2), cost); in TEST()
113 residual_block.Evaluate(true, &cost, residuals, NULL, scratch); in TEST()
114 EXPECT_EQ(0.5 * (0*0 + 1*1 + 2*2), cost); in TEST()
120 cost = 0.0; in TEST()
137 residual_block.Evaluate(true, &cost, residuals, jacobian_ptrs, scratch); in TEST()
138 EXPECT_EQ(0.5 * (0*0 + 1*1 + 2*2), cost); in TEST()
148 cost = 0.0; in TEST()
156 residual_block.Evaluate(true, &cost, residuals, jacobian_ptrs, scratch); in TEST()
[all …]
Dtrust_region_minimizer.cc63 const double cost, in DoLineSearch() argument
96 line_search->Search(1.0, cost, gradient.dot(delta), &summary); in DoLineSearch()
101 line_search->Search(1.0, cost, -gradient.squaredNorm(), &summary); in DoLineSearch()
197 double cost = 0.0; in Minimize() local
199 &cost, in Minimize()
219 summary->initial_cost = cost + summary->fixed_cost; in Minimize()
220 iteration_summary.cost = cost + summary->fixed_cost; in Minimize()
250 double minimum_cost = cost; in Minimize()
251 double reference_cost = cost; in Minimize()
253 double candidate_cost = cost; in Minimize()
[all …]
/external/llvm/test/Analysis/CostModel/PowerPC/
Dload_store.ll1 ; RUN: opt < %s -cost-model -analyze -mtriple=powerpc64-unknown-linux-gnu -mcpu=pwr7 | 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 {{.*}} load
[all …]
/external/llvm/test/Analysis/CostModel/AArch64/
Dselect.ll1 ; 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 ; Vector values - check for vectors that have a high cost because they end up
22 ; CHECK: cost of 320 {{.*}} select
25 ; CHECK: cost of 160 {{.*}} select
[all …]

12345678910>>...16