Lines Matching +full:x +full:- +full:versions

19 ;;   char *x = foo();
21 ;; memset(x, 0, 10);
23 ;; delete[] x;
29 ;; Code compiled with -mllvm -memprof-ave-lifetime-cold-threshold=5 so that the
32 ;; The IR was then reduced using llvm-reduce with the expected FileCheck input.
34 ;; -stats requires asserts
37 ; RUN: opt -thinlto-bc -memprof-report-hinted-sizes %s >%t.o
38 ; RUN: llvm-lto2 run %t.o -enable-memprof-context-disambiguation \
39 ; RUN: -supports-hot-cold-new \
40 ; RUN: -r=%t.o,main,plx \
41 ; RUN: -r=%t.o,_ZdaPv, \
42 ; RUN: -r=%t.o,sleep, \
43 ; RUN: -r=%t.o,_Znam, \
44 ; RUN: -memprof-verify-ccg -memprof-verify-nodes -memprof-dump-ccg \
45 ; RUN: -memprof-export-to-dot -memprof-dot-file-path-prefix=%t. \
46 ; RUN: -memprof-report-hinted-sizes \
47 ; RUN: -stats -pass-remarks=memprof-context-disambiguation -save-temps \
48 ; RUN: -o %t.out 2>&1 | FileCheck %s --check-prefix=DUMP --check-prefix=DUMP-SIZES \
49 ; RUN: --check-prefix=STATS --check-prefix=STATS-BE --check-prefix=REMARKS \
50 ; RUN: --check-prefix=SIZES
52 ; RUN: cat %t.ccg.postbuild.dot | FileCheck %s --check-prefix=DOT
54 ; RUN: cat %t.ccg.cloned.dot | FileCheck %s --check-prefix=DOTCLONED
56 ; RUN: llvm-dis %t.out.1.4.opt.bc -o - | FileCheck %s --check-prefix=IR
60 ; RUN: llvm-lto2 run %t.o -enable-memprof-context-disambiguation \
61 ; RUN: -supports-hot-cold-new \
62 ; RUN: -thinlto-distributed-indexes \
63 ; RUN: -r=%t.o,main,plx \
64 ; RUN: -r=%t.o,_ZdaPv, \
65 ; RUN: -r=%t.o,sleep, \
66 ; RUN: -r=%t.o,_Znam, \
67 ; RUN: -memprof-verify-ccg -memprof-verify-nodes -memprof-dump-ccg \
68 ; RUN: -memprof-export-to-dot -memprof-dot-file-path-prefix=%t2. \
69 ; RUN: -memprof-report-hinted-sizes \
70 ; RUN: -stats -pass-remarks=memprof-context-disambiguation \
71 ; RUN: -o %t2.out 2>&1 | FileCheck %s --check-prefix=DUMP \
72 ; RUN: --check-prefix=STATS --check-prefix=SIZES
74 ; RUN: cat %t2.ccg.postbuild.dot | FileCheck %s --check-prefix=DOT
76 ; RUN: cat %t2.ccg.cloned.dot | FileCheck %s --check-prefix=DOTCLONED
79 ; RUN: llvm-dis %t.o.thinlto.bc -o - | FileCheck %s --check-prefix=DISTRIB
82 ; RUN: opt -passes=memprof-context-disambiguation \
83 ; RUN: -memprof-import-summary=%t.o.thinlto.bc \
84 ; RUN: -stats -pass-remarks=memprof-context-disambiguation \
85 ; RUN: %t.o -S 2>&1 | FileCheck %s --check-prefix=IR \
86 ; RUN: --check-prefix=STATS-BE --check-prefix=REMARKS
88 source_filename = "memprof-basic.ll"
89 target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
90 target triple = "x86_64-unknown-linux-gnu"
129 !1 = !{i64 -3421689549917153178}
132 !4 = !{i64 9086428284934609951, i64 -5964873800580613432, i64 2732490490862098848, i64 8632435727821051414}
134 !6 = !{i64 9086428284934609951, i64 -5964873800580613432, i64 2732490490862098848, i64 -3421689549917153178}
136 !8 = !{i64 -5964873800580613432}
145 ; DUMP: Node [[BAR:0x[a-z0-9]+]]
146 ; DUMP: Versions: 1 MIB:
149 ; DUMP-SIZES: ContextSizeInfo per MIB:
150 ; DUMP-SIZES: { 123, 100 }
151 ; DUMP-SIZES: { 456, 200 }, { 789, 300 }
157 ; DUMP: Edge from Callee [[BAR]] to Caller: [[BAZ:0x[a-z0-9]+]] AllocTypes: NotColdCold ContextIds: 1 2
166 ; DUMP: Edge from Callee [[BAZ]] to Caller: [[FOO:0x[a-z0-9]+]] AllocTypes: NotColdCold ContextIds: 1 2
175 ; DUMP: Edge from Callee [[FOO]] to Caller: [[MAIN1:0x[a-z0-9]+]] AllocTypes: NotCold ContextIds: 1
176 ; DUMP: Edge from Callee [[FOO]] to Caller: [[MAIN2:0x[a-z0-9]+]] AllocTypes: Cold ContextIds: 2
197 ; DUMP: Versions: 1 MIB:
206 ; DUMP: Clones: [[BAR2:0x[a-z0-9]+]]
216 ; DUMP: Clones: [[BAZ2:0x[a-z0-9]+]]
226 ; DUMP: Clones: [[FOO2:0x[a-z0-9]+]]
265 ; DUMP: Versions: 1 MIB:
299 ; IR: call {{.*}} @_Znam(i64 0) #[[NOTCOLD:[0-9]+]]
305 ; IR: call {{.*}} @_Znam(i64 0) #[[COLD:[0-9]+]]
314 ; STATS: 1 memprof-context-disambiguation - Number of cold static allocations (possibly cloned)
315 ; STATS-BE: 1 memprof-context-disambiguation - Number of cold static allocations (possibly cloned) during ThinLTO backend
316 ; STATS: 1 memprof-context-disambiguation - Number of not cold static allocations (possibly cloned)
317 ; STATS-BE: 1 memprof-context-disambiguation - Number of not cold static allocations (possibly cloned) during ThinLTO backend
318 ; STATS-BE: 2 memprof-context-disambiguation - Number of allocation versions (including clones) during ThinLTO backend
319 ; STATS: 3 memprof-context-disambiguation - Number of function clones created during whole program analysis
320 ; STATS-BE: 3 memprof-context-disambiguation - Number of function clones created during ThinLTO backend
321 ; STATS-BE: 3 memprof-context-disambiguation - Number of functions that had clones created during ThinLTO backend
322 ; STATS-BE: 2 memprof-context-disambiguation - Maximum number of allocation versions created for an original allocation during ThinLTO backend
323 ; STATS-BE: 1 memprof-context-disambiguation - Number of original (not cloned) allocations with memprof profiles during ThinLTO backend
328 ; DOT: Node[[BAR:0x[a-z0-9]+]] [shape=record,tooltip="N[[BAR]] ContextIds: 1 2",fillcolor="mediumorchid1",style="filled",style="filled",label="{OrigId: Alloc0\n_Z3barv -\> alloc}"];
329 ; DOT: Node[[BAZ:0x[a-z0-9]+]] [shape=record,tooltip="N[[BAZ]] ContextIds: 1 2",fillcolor="mediumorchid1",style="filled",style="filled",label="{OrigId: 12481870273128938184\n_Z3bazv -\> _Z3barv}"];
330 ; DOT: Node[[BAZ]] -> Node[[BAR]][tooltip="ContextIds: 1 2",fillcolor="mediumorchid1"];
331 ; DOT: Node[[FOO:0x[a-z0-9]+]] [shape=record,tooltip="N[[FOO]] ContextIds: 1 2",fillcolor="mediumorchid1",style="filled",style="filled",label="{OrigId: 2732490490862098848\n_Z3foov -\> _Z3bazv}"];
332 ; DOT: Node[[FOO]] -> Node[[BAZ]][tooltip="ContextIds: 1 2",fillcolor="mediumorchid1"];
333 ; DOT: Node[[MAIN1:0x[a-z0-9]+]] [shape=record,tooltip="N[[MAIN1]] ContextIds: 1",fillcolor="brown1",style="filled",style="filled",label="{OrigId: 8632435727821051414\nmain -\> _Z3foov}"];
334 ; DOT: Node[[MAIN1]] -> Node[[FOO]][tooltip="ContextIds: 1",fillcolor="brown1"];
335 ; DOT: Node[[MAIN2:0x[a-z0-9]+]] [shape=record,tooltip="N[[MAIN2]] ContextIds: 2",fillcolor="cyan",style="filled",style="filled",label="{OrigId: 15025054523792398438\nmain -\> _Z3foov}"];
336 ; DOT: Node[[MAIN2]] -> Node[[FOO]][tooltip="ContextIds: 2",fillcolor="cyan"];
342 ; DOTCLONED: Node[[BAR:0x[a-z0-9]+]] [shape=record,tooltip="N[[BAR]] ContextIds: 1",fillcolor="brown1",style="filled",style="filled",label="{OrigId: Alloc0\n_Z3barv -\> alloc}"];
343 ; DOTCLONED: Node[[BAZ:0x[a-z0-9]+]] [shape=record,tooltip="N[[BAZ]] ContextIds: 1",fillcolor="brown1",style="filled",style="filled",label="{OrigId: 12481870273128938184\n_Z3bazv -\> _Z3barv}"];
344 ; DOTCLONED: Node[[BAZ]] -> Node[[BAR]][tooltip="ContextIds: 1",fillcolor="brown1"];
345 ; DOTCLONED: Node[[FOO:0x[a-z0-9]+]] [shape=record,tooltip="N[[FOO]] ContextIds: 1",fillcolor="brown1",style="filled",style="filled",label="{OrigId: 2732490490862098848\n_Z3foov -\> _Z3bazv}"];
346 ; DOTCLONED: Node[[FOO]] -> Node[[BAZ]][tooltip="ContextIds: 1",fillcolor="brown1"];
347 ; DOTCLONED: Node[[MAIN1:0x[a-z0-9]+]] [shape=record,tooltip="N[[MAIN1]] ContextIds: 1",fillcolor="brown1",style="filled",style="filled",label="{OrigId: 8632435727821051414\nmain -\> _Z3foov}"];
348 ; DOTCLONED: Node[[MAIN1]] -> Node[[FOO]][tooltip="ContextIds: 1",fillcolor="brown1"];
349 ; DOTCLONED: Node[[MAIN2:0x[a-z0-9]+]] [shape=record,tooltip="N[[MAIN2]] ContextIds: 2",fillcolor="cyan",style="filled",style="filled",label="{OrigId: 15025054523792398438\nmain -\> _Z3foov}"];
350 ; DOTCLONED: Node[[MAIN2]] -> Node[[FOO2:0x[a-z0-9]+]][tooltip="ContextIds: 2",fillcolor="cyan"];
351 ; DOTCLONED: Node[[FOO2]] [shape=record,tooltip="N[[FOO2]] ContextIds: 2",fillcolor="cyan",style="filled",color="blue",style="filled,bold,dashed",label="{OrigId: 0\n_Z3foov -\> _Z3bazv}"];
352 ; DOTCLONED: Node[[FOO2]] -> Node[[BAZ2:0x[a-z0-9]+]][tooltip="ContextIds: 2",fillcolor="cyan"];
353 ; DOTCLONED: Node[[BAZ2]] [shape=record,tooltip="N[[BAZ2]] ContextIds: 2",fillcolor="cyan",style="filled",color="blue",style="filled,bold,dashed",label="{OrigId: 0\n_Z3bazv -\> _Z3barv}"];
354 ; DOTCLONED: Node[[BAZ2]] -> Node[[BAR2:0x[a-z0-9]+]][tooltip="ContextIds: 2",fillcolor="cyan"];
355 ; DOTCLONED: Node[[BAR2]] [shape=record,tooltip="N[[BAR2]] ContextIds: 2",fillcolor="cyan",style="filled",color="blue",style="filled,bold,dashed",label="{OrigId: Alloc0\n_Z3barv -\> alloc}"];
359 ; DISTRIB: ^[[BAZ:[0-9]+]] = gv: (guid: 1807954217441101578, {{.*}} callsites: ((callee: ^[[BAR:[0-9]+]], clones: (0, 1)
360 ; DISTRIB: ^[[FOO:[0-9]+]] = gv: (guid: 8107868197919466657, {{.*}} callsites: ((callee: ^[[BAZ]], clones: (0, 1)
361 ; DISTRIB: ^[[BAR]] = gv: (guid: 11481133863268513686, {{.*}} allocs: ((versions: (notcold, cold)
362 ; DISTRIB: ^[[MAIN:[0-9]+]] = gv: (guid: 15822663052811949562, {{.*}} callsites: ((callee: ^[[FOO]], clones: (0), {{.*}} (callee: ^[[FOO]], clones: (1)