summaryrefslogtreecommitdiffstats
path: root/llvm/test/Transforms/SampleProfile/indirect-call.ll
diff options
context:
space:
mode:
authorDehao Chen <dehao@google.com>2017-01-30 22:26:05 +0000
committerDehao Chen <dehao@google.com>2017-01-30 22:26:05 +0000
commit6217fa44b87f2213f7e8513d29b0ff8f8a1d6615 (patch)
treee26a63d460155a924440e249898463e0fab2e5ea /llvm/test/Transforms/SampleProfile/indirect-call.ll
parenta2aee8fad074c28aff23db0751d4e4d80b8c1dd0 (diff)
downloadbcm5719-llvm-6217fa44b87f2213f7e8513d29b0ff8f8a1d6615.tar.gz
bcm5719-llvm-6217fa44b87f2213f7e8513d29b0ff8f8a1d6615.zip
Revert r292979 which causes compile time failure.
llvm-svn: 293557
Diffstat (limited to 'llvm/test/Transforms/SampleProfile/indirect-call.ll')
-rw-r--r--llvm/test/Transforms/SampleProfile/indirect-call.ll33
1 files changed, 0 insertions, 33 deletions
diff --git a/llvm/test/Transforms/SampleProfile/indirect-call.ll b/llvm/test/Transforms/SampleProfile/indirect-call.ll
index 30195921a0e..01192d80e94 100644
--- a/llvm/test/Transforms/SampleProfile/indirect-call.ll
+++ b/llvm/test/Transforms/SampleProfile/indirect-call.ll
@@ -1,6 +1,5 @@
; RUN: opt < %s -sample-profile -sample-profile-file=%S/Inputs/indirect-call.prof -S | FileCheck %s
-; CHECK-LABEL: @test
define void @test(void ()*) !dbg !3 {
%2 = alloca void ()*
store void ()* %0, void ()** %2
@@ -10,37 +9,6 @@ define void @test(void ()*) !dbg !3 {
ret void
}
-; CHECK-LABEL: @test_inline
-; If the indirect call is promoted and inlined in profile, we should promote and inline it.
-define void @test_inline(void ()*) !dbg !3 {
- %2 = alloca void ()*
- store void ()* %0, void ()** %2
- %3 = load void ()*, void ()** %2
-; CHECK: icmp {{.*}} @foo_inline
-; CHECK: if.true.direct_targ:
-; CHECK-NOT: call
-; CHECK: if.false.orig_indirect:
-; CHECK: call
- call void %3(), !dbg !5
- ret void
-}
-
-; CHECK-LABEL: @test_noinline
-; If the indirect call target is not available, we should not promote it.
-define void @test_noinline(void ()*) !dbg !3 {
- %2 = alloca void ()*
- store void ()* %0, void ()** %2
- %3 = load void ()*, void ()** %2
-; CHECK-NOT: icmp
-; CHECK: call
- call void %3(), !dbg !5
- ret void
-}
-
-define void @foo_inline() !dbg !3 {
- ret void
-}
-
!llvm.dbg.cu = !{!0}
!llvm.module.flags = !{!2}
@@ -49,5 +17,4 @@ define void @foo_inline() !dbg !3 {
!2 = !{i32 2, !"Debug Info Version", i32 3}
!3 = distinct !DISubprogram(name: "test", scope: !1, file: !1, line: 1, unit: !0)
!4 = !DILocation(line: 5, scope: !3)
-!5 = !DILocation(line: 6, scope: !3)
; CHECK: ![[PROF]] = !{!"VP", i32 0, i64 3457, i64 9191153033785521275, i64 2059, i64 -1069303473483922844, i64 1398}
OpenPOWER on IntegriCloud