brintos

brintos / llvm-project-archived public Read only

0
0
Text · 1.4 KiB · 693f264 Raw
36 lines · plain
1; RUN: opt -module-hash -module-summary %s -o %t.bc2; RUN: opt -module-hash -module-summary %p/Inputs/empty_module_with_cache.ll -o %t2.bc3 4; Verify that enabling caching is working, even if the module is empty5; RUN: rm -Rf %t.cache && mkdir %t.cache6; RUN: llvm-lto -thinlto-action=run %t2.bc  %t.bc -exported-symbol=main -thinlto-cache-dir %t.cache7; RUN: ls %t.cache/llvmcache.timestamp8; RUN: ls %t.cache | count 39 10; Verify that enabling caching is working with llvm-lto211; RUN: rm -Rf %t.cache12; RUN: llvm-lto2 run -o %t.o %t2.bc  %t.bc -cache-dir %t.cache \13; RUN:  -r=%t2.bc,_main,plx14; RUN: ls %t.cache | count 215 16; Same, but without hash, the index will be empty and caching should not happen17 18; RUN: opt -module-summary %s -o %t.bc19; RUN: opt -module-summary %p/Inputs/empty_module_with_cache.ll -o %t2.bc20 21; Verify that caching is disabled for module without hash22; RUN: rm -Rf %t.cache && mkdir %t.cache23; RUN: llvm-lto -thinlto-action=run %t2.bc  %t.bc -exported-symbol=main -thinlto-cache-dir %t.cache24; RUN: ls %t.cache/llvmcache.timestamp25; RUN: ls %t.cache | count 126 27; Verify that caching is disabled for module without hash, with llvm-lto228; RUN: rm -Rf %t.cache29; RUN: llvm-lto2 run -o %t.o %t2.bc  %t.bc -cache-dir %t.cache \30; RUN:  -r=%t2.bc,_main,plx31; RUN: not ls %t.cache32 33 34target datalayout = "e-m:o-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"35target triple = "x86_64-apple-macosx10.11.0"36