diff options
author | taewookoh <taewook.oh@gmail.com> | 2019-11-27 11:17:10 -0800 |
---|---|---|
committer | taewookoh <taewook.oh@gmail.com> | 2019-11-27 11:17:10 -0800 |
commit | 5d21f75b57658db538b5e1764edc775271a651cd (patch) | |
tree | 9a37ffa22670f4546f4994ada7a8524e468f7bbe /llvm/test/Analysis | |
parent | 5c166f1d1969e9c1e5b72aa672add429b9c22b53 (diff) | |
download | bcm5719-llvm-5d21f75b57658db538b5e1764edc775271a651cd.tar.gz bcm5719-llvm-5d21f75b57658db538b5e1764edc775271a651cd.zip |
Revert b19ec1eb3d0c
Summary: This reverts commit b19ec1eb3d0c as it fails powerpc tests
Subscribers: llvm-commits
Diffstat (limited to 'llvm/test/Analysis')
-rw-r--r-- | llvm/test/Analysis/BranchProbabilityInfo/basic.ll | 18 | ||||
-rw-r--r-- | llvm/test/Analysis/BranchProbabilityInfo/noreturn.ll | 26 |
2 files changed, 0 insertions, 44 deletions
diff --git a/llvm/test/Analysis/BranchProbabilityInfo/basic.ll b/llvm/test/Analysis/BranchProbabilityInfo/basic.ll index 8212cc47690..64e0a82456f 100644 --- a/llvm/test/Analysis/BranchProbabilityInfo/basic.ll +++ b/llvm/test/Analysis/BranchProbabilityInfo/basic.ll @@ -141,24 +141,6 @@ exit: ret i32 %result } -define i32 @test_cold_loop(i32 %a, i32 %b) { -entry: - %cond1 = icmp eq i32 %a, 42 - br i1 %cond1, label %header, label %exit - -header: - br label %body - -body: - %cond2 = icmp eq i32 %b, 42 - br i1 %cond2, label %header, label %exit -; CHECK: edge body -> header probability is 0x40000000 / 0x80000000 = 50.00% - -exit: - call void @coldfunc() - ret i32 %b -} - declare i32 @regular_function(i32 %i) define i32 @test_cold_call_sites_with_prof(i32 %a, i32 %b, i1 %flag, i1 %flag2) { diff --git a/llvm/test/Analysis/BranchProbabilityInfo/noreturn.ll b/llvm/test/Analysis/BranchProbabilityInfo/noreturn.ll index 6e01afd2cfc..0566ca16c2f 100644 --- a/llvm/test/Analysis/BranchProbabilityInfo/noreturn.ll +++ b/llvm/test/Analysis/BranchProbabilityInfo/noreturn.ll @@ -79,32 +79,6 @@ exit: ret i32 %b } -define i32 @test4(i32 %a, i32 %b) { -; CHECK: Printing analysis {{.*}} for function 'test4' -; Make sure we handle loops post-dominated by unreachables. -entry: - %cond1 = icmp eq i32 %a, 42 - br i1 %cond1, label %header, label %exit -; CHECK: edge entry -> header probability is 0x00000001 / 0x80000000 = 0.00% -; CHECK: edge entry -> exit probability is 0x7fffffff / 0x80000000 = 100.00% [HOT edge] - -header: - br label %body - -body: - %cond2 = icmp eq i32 %a, 42 - br i1 %cond2, label %header, label %abort -; CHECK: edge body -> header probability is 0x40000000 / 0x80000000 = 50.00% -; CHECK: edge body -> abort probability is 0x40000000 / 0x80000000 = 50.00% - -abort: - call void @abort() noreturn - unreachable - -exit: - ret i32 %b -} - @_ZTIi = external global i8* ; CHECK-LABEL: throwSmallException |