Lines Matching full:cache
7 ; RUN: opt -module-hash -module-summary %p/Inputs/cache.ll -o b.bc
9 ; RUN: mkdir cache
10 ; Create two files that would be removed by cache pruning due to age.
12 ; RUN: touch -t 197001011200 cache/llvmcache-foo cache/foo
13 ; RUN: ld.lld --thinlto-cache-dir=cache --thinlto-cache-policy prune_after=1h:prune_interval=0s -o …
16 ; RUN: ls cache | count 4
19 ; RUN: %python -c "print(' ' * 65536)" > cache/llvmcache-foo
22 ; RUN: ld.lld --thinlto-cache-dir=cache --thinlto-cache-policy cache_size_bytes=128k:prune_interval…
23 ; RUN: ls cache | count 5
27 ; RUN: %python -c 'import os,sys,time; t=time.time()-120; os.utime(sys.argv[1],(t,t))' cache/llvmca…
30 ; RUN: ld.lld --thinlto-cache-dir=cache --thinlto-cache-policy cache_size_bytes=32k:prune_interval=…
31 ; RUN: ls cache | count 4
34 ; RUN: ld.lld --thinlto-cache-dir=cache --thinlto-cache-policy prune_after=0s:cache_size=0%:cache_s…
35 ; RUN: ls cache | count 4
37 ; Delete everything except for the timestamp, "foo" and one cache file.
38 ; RUN: ld.lld --thinlto-cache-dir=cache --thinlto-cache-policy prune_after=0s:cache_size=0%:cache_s…
39 ; RUN: ls cache | count 3
42 ; RUN: rm -fr cache && mkdir cache
43 ; RUN: echo xyz > cache/llvmcache-old
44 ; RUN: touch -t 198002011200 cache/llvmcache-old
45 ; RUN: echo xyz > cache/llvmcache-newer
46 ; RUN: touch -t 198002021200 cache/llvmcache-newer
47 ; RUN: ld.lld --thinlto-cache-dir=cache --thinlto-cache-policy prune_after=0s:cache_size=0%:cache_s…
48 ; RUN: ls cache | FileCheck %s
54 ; RUN: rm -fr cache && mkdir cache
55 ; RUN: ld.lld --thinlto-cache-dir=cache --save-temps -o out b.bc a.bc -M | FileCheck %s --check-pre…
61 ;; Check that mllvm options participate in the cache key
62 ; RUN: rm -rf cache && mkdir cache
63 ; RUN: ld.lld --thinlto-cache-dir=cache -o out b.bc a.bc
64 ; RUN: ls cache | count 3
65 ; RUN: ld.lld --thinlto-cache-dir=cache -o out b.bc a.bc -mllvm -enable-ml-inliner=default
66 ; RUN: ls cache | count 5
68 ;; Adding another option resuls in 2 more cache entries
69 ; RUN: rm -rf cache && mkdir cache
70 ; RUN: ld.lld --thinlto-cache-dir=cache -o out b.bc a.bc
71 ; RUN: ls cache | count 3
72 ; RUN: ld.lld --thinlto-cache-dir=cache -o out b.bc a.bc -mllvm -enable-ml-inliner=default
73 ; RUN: ls cache | count 5
74 ; RUN: ld.lld --thinlto-cache-dir=cache -o out b.bc a.bc -mllvm -enable-ml-inliner=default -mllvm -…
75 ; RUN: ls cache | count 7
78 ; RUN: ld.lld --thinlto-cache-dir=cache -o out b.bc a.bc -mllvm -max-devirt-iterations=1 -mllvm -en…
79 ; RUN: ls cache | count 9
82 ; RUN: ld.lld --thinlto-cache-dir=cache -o out b.bc a.bc -mllvm -enable-ml-inliner=default -mllvm -…
83 ; RUN: ls cache | count 9
86 ; RUN: rm -rf cache && mkdir cache
87 ; RUN: ld.lld --thinlto-cache-dir=cache -o out b.bc a.bc -mllvm -enable-ml-inliner=default -mllvm -…
88 ; RUN: ls cache | count 3
89 ; RUN: ld.lld --thinlto-cache-dir=cache -o out b.bc a.bc -mllvm -enable-ml-inliner=default -mllvm -…
90 ; RUN: ls cache | count 5
94 ; RUN: rm -rf cache && mkdir cache
95 ; RUN: ld.lld --thinlto-cache-dir=cache -o out b.bc a.bc -mllvm -enable-ml-inliner=default
96 ; RUN: ls cache | count 3
97 ; RUN: ld.lld --thinlto-cache-dir=cache -o out b.bc a.bc -mllvm -emit-dwarf-unwind=default
98 ; RUN: ls cache | count 5
99 ; RUN: ld.lld --thinlto-cache-dir=cache -o out b.bc a.bc -mllvm -enable-ml-inliner=default
100 ; RUN: ls cache | count 5
101 ; RUN: ld.lld --thinlto-cache-dir=cache -o out b.bc a.bc -mllvm -enable-ml-inliner=default -mllvm -…
102 ; RUN: ls cache | count 7
103 ; RUN: ld.lld --thinlto-cache-dir=cache -o out b.bc a.bc -mllvm -emit-dwarf-unwind=default -mllvm -…
104 ; RUN: ls cache | count 9