summaryrefslogtreecommitdiffstats
path: root/llvm
diff options
context:
space:
mode:
authorJames Molloy <james.molloy@arm.com>2012-10-02 10:57:08 +0000
committerJames Molloy <james.molloy@arm.com>2012-10-02 10:57:08 +0000
commit77639e2c7215de62b95dc6bf6660f8732ecbeaf1 (patch)
tree4c5bdc2fa12fcbd547fff36b193fb0f98ccf6a1c /llvm
parente42d406105672d01f692e2801e22c5cce0c6868e (diff)
downloadbcm5719-llvm-77639e2c7215de62b95dc6bf6660f8732ecbeaf1.tar.gz
bcm5719-llvm-77639e2c7215de62b95dc6bf6660f8732ecbeaf1.zip
Add default JIT LIT variable.
Patch by David Tweed! llvm-svn: 164996
Diffstat (limited to 'llvm')
-rw-r--r--llvm/test/Analysis/Profiling/load-branch-weights-ifs.ll2
-rw-r--r--llvm/test/Analysis/Profiling/load-branch-weights-loops.ll2
-rw-r--r--llvm/test/Analysis/Profiling/load-branch-weights-switches.ll2
-rw-r--r--llvm/test/lit.cfg5
4 files changed, 8 insertions, 3 deletions
diff --git a/llvm/test/Analysis/Profiling/load-branch-weights-ifs.ll b/llvm/test/Analysis/Profiling/load-branch-weights-ifs.ll
index ddbaf96916c..7ed090b7c36 100644
--- a/llvm/test/Analysis/Profiling/load-branch-weights-ifs.ll
+++ b/llvm/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/llvm/test/Analysis/Profiling/load-branch-weights-loops.ll b/llvm/test/Analysis/Profiling/load-branch-weights-loops.ll
index 476f377b47a..9d1925a2d70 100644
--- a/llvm/test/Analysis/Profiling/load-branch-weights-loops.ll
+++ b/llvm/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/llvm/test/Analysis/Profiling/load-branch-weights-switches.ll b/llvm/test/Analysis/Profiling/load-branch-weights-switches.ll
index be11f040a76..5587c7172bb 100644
--- a/llvm/test/Analysis/Profiling/load-branch-weights-switches.ll
+++ b/llvm/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/llvm/test/lit.cfg b/llvm/test/lit.cfg
index 6f44bb3d8c6..b7c5f3ef38c 100644
--- a/llvm/test/lit.cfg
+++ b/llvm/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':
OpenPOWER on IntegriCloud