Lines Matching +full:x +full:- +full:versions
43 ;; Code compiled with -mllvm -memprof-min-lifetime-cold-threshold=5 so that the
46 ;; The IR was then reduced using llvm-reduce with the expected FileCheck input.
48 ;; -stats requires asserts
52 ; RUN: opt -thinlto-bc %s >%t.o
53 ; RUN: llvm-lto2 run %t.o -enable-memprof-context-disambiguation \
54 ; RUN: -supports-hot-cold-new \
55 ; RUN: -r=%t.o,main,plx \
56 ; RUN: -r=%t.o,_ZdaPv, \
57 ; RUN: -r=%t.o,sleep, \
58 ; RUN: -r=%t.o,_Znam, \
59 ; RUN: -memprof-verify-ccg -memprof-verify-nodes -memprof-dump-ccg \
60 ; RUN: -stats -pass-remarks=memprof-context-disambiguation -save-temps \
61 ; RUN: -o %t.out 2>&1 | FileCheck %s --check-prefix=DUMP \
62 ; RUN: --check-prefix=STATS --check-prefix=STATS-BE --check-prefix=REMARKS
64 ; RUN: llvm-dis %t.out.1.4.opt.bc -o - | FileCheck %s --check-prefix=IR
68 ; RUN: llvm-lto2 run %t.o -enable-memprof-context-disambiguation \
69 ; RUN: -supports-hot-cold-new \
70 ; RUN: -thinlto-distributed-indexes \
71 ; RUN: -r=%t.o,main,plx \
72 ; RUN: -r=%t.o,_ZdaPv, \
73 ; RUN: -r=%t.o,sleep, \
74 ; RUN: -r=%t.o,_Znam, \
75 ; RUN: -memprof-verify-ccg -memprof-verify-nodes -memprof-dump-ccg \
76 ; RUN: -stats -pass-remarks=memprof-context-disambiguation \
77 ; RUN: -o %t2.out 2>&1 | FileCheck %s --check-prefix=DUMP \
78 ; RUN: --check-prefix=STATS
81 ; RUN: opt -passes=memprof-context-disambiguation \
82 ; RUN: -memprof-import-summary=%t.o.thinlto.bc \
83 ; RUN: -stats -pass-remarks=memprof-context-disambiguation \
84 ; RUN: %t.o -S 2>&1 | FileCheck %s --check-prefix=IR \
85 ; RUN: --check-prefix=STATS-BE --check-prefix=REMARKS
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"
140 !2 = !{i64 -3461278137325233666, i64 -7799663586031895603}
142 !4 = !{i64 -3461278137325233666, i64 -3483158674395044949}
144 !6 = !{i64 -3461278137325233666, i64 -2441057035866683071}
145 !7 = !{i64 -3461278137325233666}
148 !10 = !{i64 -1415475215210681400, i64 -2441057035866683071}
150 !12 = !{i64 -1415475215210681400, i64 -3483158674395044949}
152 !14 = !{i64 -1415475215210681400, i64 -7799663586031895603}
153 !15 = !{i64 -1415475215210681400}
154 !16 = !{i64 -2441057035866683071}
155 !17 = !{i64 -3483158674395044949}
156 !18 = !{i64 -7799663586031895603}
164 ; DUMP: Node [[ENEW1ORIG:0x[a-z0-9]+]]
165 ; DUMP: Versions: 1 MIB:
174 ; DUMP: Edge from Callee [[ENEW1ORIG]] to Caller: [[C:0x[a-z0-9]+]] AllocTypes: NotCold ContextId…
175 ; DUMP: Edge from Callee [[ENEW1ORIG]] to Caller: [[B:0x[a-z0-9]+]] AllocTypes: NotCold ContextId…
176 ; DUMP: Clones: [[ENEW1CLONE:0x[a-z0-9]+]]
178 ; DUMP: Node [[D:0x[a-z0-9]+]]
184 ; DUMP: Edge from Callee [[ENEW2ORIG:0x[a-z0-9]+]] to Caller: [[D]] AllocTypes: NotCold ContextId…
193 ; DUMP: Edge from Callee [[ENEW2CLONE:0x[a-z0-9]+]] to Caller: [[C]] AllocTypes: Cold ContextIds:…
206 ; DUMP: Versions: 1 MIB:
220 ; DUMP: Versions: 1 MIB:
233 ; DUMP: Versions: 1 MIB:
263 ;; Original version of E is used for the non-cold allocations, both from B.
265 ; IR: call {{.*}} @_Znam(i64 noundef 10) #[[NOTCOLD:[0-9]+]]
270 ;; second allocating non-cold memory.
273 ;; D calls a clone of E with the first new allocating non-cold memory and the
278 ; IR: call {{.*}} @_Znam(i64 noundef 10) #[[COLD:[0-9]+]]
287 ; STATS: 2 memprof-context-disambiguation - Number of cold static allocations (possibly cloned)
288 ; STATS-BE: 2 memprof-context-disambiguation - Number of cold static allocations (possibly cloned) …
289 ; STATS: 4 memprof-context-disambiguation - Number of not cold static allocations (possibly cloned)
290 ; STATS-BE: 4 memprof-context-disambiguation - Number of not cold static allocations (possibly clon…
291 ; STATS-BE: 8 memprof-context-disambiguation - Number of allocation versions (including clones) dur…
292 ; STATS: 3 memprof-context-disambiguation - Number of function clones created during whole program …
293 ; STATS-BE: 3 memprof-context-disambiguation - Number of function clones created during ThinLTO bac…
294 ; STATS-BE: 1 memprof-context-disambiguation - Number of functions that had clones created during T…
295 ; STATS-BE: 4 memprof-context-disambiguation - Maximum number of allocation versions created for an…
296 ; STATS-BE: 2 memprof-context-disambiguation - Number of original (not cloned) allocations with mem…