summaryrefslogtreecommitdiffstats
path: root/llvm/test/Analysis
diff options
context:
space:
mode:
authorAndreas Neustifter <astifter-llvm@gmx.at>2009-09-04 17:21:59 +0000
committerAndreas Neustifter <astifter-llvm@gmx.at>2009-09-04 17:21:59 +0000
commit5673c0aacefd40f9eb760db2cb7dcfb7d7464d8d (patch)
tree4df29418f75f606ef0c8a77262bda41e17385cc0 /llvm/test/Analysis
parent8f166f6a36c1c5efce681531e7e3addf938032f5 (diff)
downloadbcm5719-llvm-5673c0aacefd40f9eb760db2cb7dcfb7d7464d8d.tar.gz
bcm5719-llvm-5673c0aacefd40f9eb760db2cb7dcfb7d7464d8d.zip
Updated tests to use ProfileVerifer to test ProfileLoader and ProfileEstimator.
(Keep disabled test disabled until selfhosted build issue is resolved.) llvm-svn: 81008
Diffstat (limited to 'llvm/test/Analysis')
-rw-r--r--llvm/test/Analysis/Profiling/edge-profiling.ll3
-rw-r--r--llvm/test/Analysis/Profiling/profiling-tool-chain.ll13
2 files changed, 13 insertions, 3 deletions
diff --git a/llvm/test/Analysis/Profiling/edge-profiling.ll b/llvm/test/Analysis/Profiling/edge-profiling.ll
index 0d584469503..f285c19e6ee 100644
--- a/llvm/test/Analysis/Profiling/edge-profiling.ll
+++ b/llvm/test/Analysis/Profiling/edge-profiling.ll
@@ -1,4 +1,5 @@
-; RUN: llvm-as < %s | opt -insert-edge-profiling | llvm-dis | tee %t1 | FileCheck %s
+; Test the edge profiling instrumentation.
+; RUN: llvm-as < %s | opt -insert-edge-profiling | llvm-dis | FileCheck %s
; ModuleID = '<stdin>'
diff --git a/llvm/test/Analysis/Profiling/profiling-tool-chain.ll b/llvm/test/Analysis/Profiling/profiling-tool-chain.ll
index 89cc92103ed..5ac31b59bdc 100644
--- a/llvm/test/Analysis/Profiling/profiling-tool-chain.ll
+++ b/llvm/test/Analysis/Profiling/profiling-tool-chain.ll
@@ -1,15 +1,24 @@
; RUN: llvm-as %s -o %t1
-; RUN: opt %t1 -insert-optimal-edge-profiling -o %t2
-; FIXME: These parts of the test are disabled for now, they aren't working on
+; FIXME: The RUX parts of the test are disabled for now, they aren't working on
; llvm-gcc-x86_64-darwin10-selfhost.
+; Test the edge optimal profiling instrumentation.
+; RUN: opt %t1 -insert-optimal-edge-profiling -o %t2
; RUX: llvm-dis < %t2 | FileCheck --check-prefix=INST %s
+
+; Test the creation, reading and displaying of profile
; RUX: rm -f llvmprof.out
; RUX: lli -load %llvmlibsdir/profile_rt%shlibext %t2
; RUX: lli -load %llvmlibsdir/profile_rt%shlibext %t2 1 2
; RUX: llvm-prof -print-all-code %t1 | FileCheck --check-prefix=PROF %s
+; Test the loaded profile also with verifier.
+; RUX opt %t1 -profile-loader -profile-verifier -o %t3
+
+; Test profile estimator.
+; RUN: opt %t1 -profile-estimator -profile-verifier -o %t3
+
; PROF: 1. 2/4 oneblock
; PROF: 2. 2/4 main
; PROF: 1. 15.7895% 12/76 main() - bb6
OpenPOWER on IntegriCloud