diff options
author | James Molloy <james.molloy@arm.com> | 2012-10-02 10:57:08 +0000 |
---|---|---|
committer | James Molloy <james.molloy@arm.com> | 2012-10-02 10:57:08 +0000 |
commit | 9e36496eb39656df8894a6a1cd56f3561f6672a4 (patch) | |
tree | 94d655e2cbb1431ca5342cd03a1e3062e8713ffd /test | |
parent | 1fe4fae463eba5965aa1f98600161ef7de96aaf1 (diff) |
Add default JIT LIT variable.
Patch by David Tweed!
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@164996 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test')
-rw-r--r-- | test/Analysis/Profiling/load-branch-weights-ifs.ll | 2 | ||||
-rw-r--r-- | test/Analysis/Profiling/load-branch-weights-loops.ll | 2 | ||||
-rw-r--r-- | test/Analysis/Profiling/load-branch-weights-switches.ll | 2 | ||||
-rw-r--r-- | test/lit.cfg | 5 |
4 files changed, 8 insertions, 3 deletions
diff --git a/test/Analysis/Profiling/load-branch-weights-ifs.ll b/test/Analysis/Profiling/load-branch-weights-ifs.ll index ddbaf96916..7ed090b7c3 100644 --- a/test/Analysis/Profiling/load-branch-weights-ifs.ll +++ b/test/Analysis/Profiling/load-branch-weights-ifs.ll @@ -1,6 +1,6 @@ ; RUN: opt -insert-edge-profiling -o %t1 < %s ; RUN: rm -f %t1.prof_data -; RUN: lli -load %llvmshlibdir/libprofile_rt%shlibext %t1 \ +; RUN: lli %defaultjit -load %llvmshlibdir/libprofile_rt%shlibext %t1 \ ; RUN: -llvmprof-output %t1.prof_data ; RUN: opt -profile-file %t1.prof_data -profile-metadata-loader -S -o - < %s \ ; RUN: | FileCheck %s diff --git a/test/Analysis/Profiling/load-branch-weights-loops.ll b/test/Analysis/Profiling/load-branch-weights-loops.ll index 476f377b47..9d1925a2d7 100644 --- a/test/Analysis/Profiling/load-branch-weights-loops.ll +++ b/test/Analysis/Profiling/load-branch-weights-loops.ll @@ -1,6 +1,6 @@ ; RUN: opt -insert-edge-profiling -o %t1 < %s ; RUN: rm -f %t1.prof_data -; RUN: lli -load %llvmshlibdir/libprofile_rt%shlibext %t1 \ +; RUN: lli %defaultjit -load %llvmshlibdir/libprofile_rt%shlibext %t1 \ ; RUN: -llvmprof-output %t1.prof_data ; RUN: opt -profile-file %t1.prof_data -profile-metadata-loader -S -o - < %s \ ; RUN: | FileCheck %s diff --git a/test/Analysis/Profiling/load-branch-weights-switches.ll b/test/Analysis/Profiling/load-branch-weights-switches.ll index be11f040a7..5587c7172b 100644 --- a/test/Analysis/Profiling/load-branch-weights-switches.ll +++ b/test/Analysis/Profiling/load-branch-weights-switches.ll @@ -1,6 +1,6 @@ ; RUN: opt -insert-edge-profiling -o %t1 < %s ; RUN: rm -f %t1.prof_data -; RUN: lli -load %llvmshlibdir/libprofile_rt%shlibext %t1 \ +; RUN: lli %defaultjit -load %llvmshlibdir/libprofile_rt%shlibext %t1 \ ; RUN: -llvmprof-output %t1.prof_data ; RUN: opt -profile-file %t1.prof_data -profile-metadata-loader -S -o - < %s \ ; RUN: | FileCheck %s diff --git a/test/lit.cfg b/test/lit.cfg index 6f44bb3d8c..b7c5f3ef38 100644 --- a/test/lit.cfg +++ b/test/lit.cfg @@ -143,6 +143,11 @@ if config.test_exec_root is None: # triple so we can check it with XFAIL and XTARGET. config.target_triple += lit.valgrindTriple +# Provide a substition for those tests that need to run the jit to obtain data +# but simply want use the currently considered most reliable jit for platform +defaultIsMCJIT='true' if 'arm' in config.target_triple else 'false' +config.substitutions.append( ('%defaultjit', '-use-mcjit='+defaultIsMCJIT) ) + # Process jit implementation option jit_impl_cfg = lit.params.get('jit_impl', None) if jit_impl_cfg == 'mcjit': |