Lines Matching full:cache

9 ; RUN: rm -Rf %t/cache && mkdir %t/cache
10 ;; Create two files that would be removed by cache pruning due to age.
12 ; RUN: touch -t 197001011200 %t/cache/llvmcache-baz %t/cache/baz
13 ; RUN: %lld -cache_path_lto %t/cache \
14 ; RUN: --thinlto-cache-policy=prune_after=1h:prune_interval=0s \
18 ; RUN: ls %t/cache | count 4
21 ; RUN: touch -t 197001011200 %t/cache/llvmcache-baz
22 ; RUN: %lld -cache_path_lto %t/cache -prune_after_lto 3600 -prune_interval_lto 0 \
24 ; RUN: ls %t/cache | count 4
27 ; RUN: %python -c "print(' ' * 65536)" > %t/cache/llvmcache-baz
30 ; RUN: %lld -cache_path_lto %t/cache \
31 ; RUN: --thinlto-cache-policy=cache_size_bytes=128k:prune_interval=0s \
33 ; RUN: ls %t/cache | count 5
38 ; RUN: %t/cache/llvmcache-baz
41 ; RUN: %lld -cache_path_lto %t/cache \
42 ; RUN: --thinlto-cache-policy=cache_size_bytes=32k:prune_interval=0s \
44 ; RUN: ls %t/cache | count 4
46 ;; Delete everything except for the timestamp, "baz" and one cache file.
47 ; RUN: %lld -cache_path_lto %t/cache \
48 ; RUN: --thinlto-cache-policy=prune_after=0s:cache_size=0%:cache_size_files=1:prune_interval=0s \
50 ; RUN: ls %t/cache | count 3
53 ; RUN: rm -fr %t/cache
54 ; RUN: mkdir %t/cache
55 ; RUN: echo xyz > %t/cache/llvmcache-old
56 ; RUN: touch -t 198002011200 %t/cache/llvmcache-old
57 ; RUN: echo xyz > %t/cache/llvmcache-newer
58 ; RUN: touch -t 198002021200 %t/cache/llvmcache-newer
59 ; RUN: %lld -cache_path_lto %t/cache \
60 ; RUN: --thinlto-cache-policy=prune_after=0s:cache_size=0%:cache_size_files=3:prune_interval=0s \
62 ; RUN: ls %t/cache | FileCheck %s
65 ; RUN: %lld -cache_path_lto %t/cache -max_relative_cache_size_lto 10 \
72 ;; Check that mllvm options participate in the cache key
73 ; RUN: rm -rf %t/cache && mkdir %t/cache
74 ; RUN: %lld -cache_path_lto %t/cache -o %t/test %t/foo.o %t/bar.o
75 ; RUN: ls %t/cache | count 3
76 ; RUN: %lld -cache_path_lto %t/cache -o %t/test %t/foo.o %t/bar.o -mllvm -enable-ml-inliner=default
77 ; RUN: ls %t/cache | count 5
79 ;; Adding another option resuls in 2 more cache entries
80 ; RUN: rm -rf %t/cache && mkdir %t/cache
81 ; RUN: %lld -cache_path_lto %t/cache -o %t/test %t/foo.o %t/bar.o
82 ; RUN: ls %t/cache | count 3
83 ; RUN: %lld -cache_path_lto %t/cache -o %t/test %t/foo.o %t/bar.o -mllvm -enable-ml-inliner=default
84 ; RUN: ls %t/cache | count 5
85 ; RUN: %lld -cache_path_lto %t/cache -o %t/test %t/foo.o %t/bar.o -mllvm -enable-ml-inliner=default…
86 ; RUN: ls %t/cache | count 7
89 ; RUN: %lld -cache_path_lto %t/cache -o %t/test %t/foo.o %t/bar.o -mllvm -max-devirt-iterations=1 -…
90 ; RUN: ls %t/cache | count 9
93 ; RUN: %lld -cache_path_lto %t/cache -o %t/test %t/foo.o %t/bar.o -mllvm -enable-ml-inliner=default…
94 ; RUN: ls %t/cache | count 9
97 ; RUN: rm -rf %t/cache && mkdir %t/cache
98 ; RUN: %lld -cache_path_lto %t/cache -o %t/test %t/foo.o %t/bar.o -mllvm -enable-ml-inliner=default…
99 ; RUN: ls %t/cache | count 3
100 ; RUN: %lld -cache_path_lto %t/cache -o %t/test %t/foo.o %t/bar.o -mllvm -enable-ml-inliner=default…
101 ; RUN: ls %t/cache | count 5
105 ; RUN: rm -rf %t/cache && mkdir %t/cache
106 ; RUN: %lld -cache_path_lto %t/cache -o %t/test %t/foo.o %t/bar.o -mllvm -enable-ml-inliner=default
107 ; RUN: ls %t/cache | count 3
108 ; RUN: %lld -cache_path_lto %t/cache -o %t/test %t/foo.o %t/bar.o -mllvm -emit-dwarf-unwind=default
109 ; RUN: ls %t/cache | count 5
110 ; RUN: %lld -cache_path_lto %t/cache -o %t/test %t/foo.o %t/bar.o -mllvm -enable-ml-inliner=default
111 ; RUN: ls %t/cache | count 5
112 ; RUN: %lld -cache_path_lto %t/cache -o %t/test %t/foo.o %t/bar.o -mllvm -enable-ml-inliner=default…
113 ; RUN: ls %t/cache | count 7
114 ; RUN: %lld -cache_path_lto %t/cache -o %t/test %t/foo.o %t/bar.o -mllvm -emit-dwarf-unwind=default…
115 ; RUN: ls %t/cache | count 9