diff options
author | Rong Xu <xur@google.com> | 2016-12-13 17:34:29 +0000 |
---|---|---|
committer | Rong Xu <xur@google.com> | 2016-12-13 17:34:29 +0000 |
commit | 3462cac9afb58c5355f47ecfc8ce1c5dcae85a0a (patch) | |
tree | 7868831fb1543c5ce3a451f6a3ca086328fc66fe /llvm | |
parent | 5f2db1351f8396111633f86b12884373847f8933 (diff) | |
download | bcm5719-llvm-3462cac9afb58c5355f47ecfc8ce1c5dcae85a0a.tar.gz bcm5719-llvm-3462cac9afb58c5355f47ecfc8ce1c5dcae85a0a.zip |
Fix the test cases committed in r289521.
llvm-svn: 289556
Diffstat (limited to 'llvm')
-rw-r--r-- | llvm/test/Transforms/PGOProfile/noreturncall.ll | 18 |
1 files changed, 8 insertions, 10 deletions
diff --git a/llvm/test/Transforms/PGOProfile/noreturncall.ll b/llvm/test/Transforms/PGOProfile/noreturncall.ll index 854f3e3be52..5f4b531e833 100644 --- a/llvm/test/Transforms/PGOProfile/noreturncall.ll +++ b/llvm/test/Transforms/PGOProfile/noreturncall.ll @@ -1,6 +1,6 @@ ; RUN: llvm-profdata merge %S/Inputs/noreturncall.proftext -o %t.profdata -; RUN: opt < %s -pgo-instr-use -pgo-test-profile-file=%t.profdata -S -debug-only=pgo-instrumentation 2>&1 | FileCheck %s --check-prefix=USE -; RUN: opt < %s -passes=pgo-instr-use -pgo-test-profile-file=%t.profdata -S -debug-only=pgo-instrumentation 2>&1 | FileCheck %s --check-prefix=USE +; RUN: opt < %s -pgo-instr-use -pgo-test-profile-file=%t.profdata -S | FileCheck %s --check-prefix=USE +; RUN: opt < %s -passes=pgo-instr-use -pgo-test-profile-file=%t.profdata -S | FileCheck %s --check-prefix=USE ; REQUIRES: asserts target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128" @@ -17,6 +17,8 @@ define i32 @foo(i32 %i, i32 %j, i32 %k) { entry: %cmp = icmp slt i32 %i, 999 br i1 %cmp, label %if.then, label %if.end +; USE: br i1 %cmp, label %if.then, label %if.end +; USE-SAME: !prof ![[BW_ENTRY:[0-9]+]] if.then: %call = call i32 @bar0(i32 %i) @@ -28,6 +30,8 @@ if.end: %cmp3 = icmp sgt i32 %k, 99 %or.cond = and i1 %cmp1, %cmp3 br i1 %or.cond, label %if.then4, label %if.end7 +; USE: br i1 %or.cond, label %if.then4, label %if.end7 +; USE-SAME: !prof ![[BW_IF:[0-9]+]] if.then4: %call5 = call i32 @bar2(i32 undef) @@ -37,11 +41,5 @@ if.end7: %mul = mul nsw i32 %ret.0, %ret.0 ret i32 %mul } -; USE: Edge 0: 1-->3 c W=8000 Count=0 -; USE: Edge 1: 3-->5 c W=8000 Count=20 -; USE: Edge 2: 0-->1 W=16 Count=21 -; USE: Edge 3: 5-->0 * W=16 Count=20 -; USE: Edge 4: 1-->2 W=8 Count=21 -; USE: Edge 5: 2-->3 * W=8 Count=21 -; USE: Edge 6: 3-->4 W=8 Count=0 -; USE: Edge 7: 4-->5 * W=8 Count=0 +; USE: ![[BW_ENTRY]] = !{!"branch_weights", i32 21, i32 0} +; USE: ![[BW_IF]] = !{!"branch_weights", i32 0, i32 20} |