[llvm-commits] [llvm] r81008 - in /llvm/trunk/test/Analysis/Profiling: edge-profiling.ll profiling-tool-chain.ll
Andreas Neustifter
astifter-llvm at gmx.at
Fri Sep 4 10:21:59 PDT 2009
Author: astifter
Date: Fri Sep 4 12:21:59 2009
New Revision: 81008
URL: http://llvm.org/viewvc/llvm-project?rev=81008&view=rev
Log:
Updated tests to use ProfileVerifer to test ProfileLoader and ProfileEstimator.
(Keep disabled test disabled until selfhosted build issue is resolved.)
Modified:
llvm/trunk/test/Analysis/Profiling/edge-profiling.ll
llvm/trunk/test/Analysis/Profiling/profiling-tool-chain.ll
Modified: llvm/trunk/test/Analysis/Profiling/edge-profiling.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/Analysis/Profiling/edge-profiling.ll?rev=81008&r1=81007&r2=81008&view=diff
==============================================================================
--- llvm/trunk/test/Analysis/Profiling/edge-profiling.ll (original)
+++ llvm/trunk/test/Analysis/Profiling/edge-profiling.ll Fri Sep 4 12:21:59 2009
@@ -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>'
Modified: llvm/trunk/test/Analysis/Profiling/profiling-tool-chain.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/Analysis/Profiling/profiling-tool-chain.ll?rev=81008&r1=81007&r2=81008&view=diff
==============================================================================
--- llvm/trunk/test/Analysis/Profiling/profiling-tool-chain.ll (original)
+++ llvm/trunk/test/Analysis/Profiling/profiling-tool-chain.ll Fri Sep 4 12:21:59 2009
@@ -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
More information about the llvm-commits
mailing list