summaryrefslogtreecommitdiffstats
path: root/llvm/test
diff options
context:
space:
mode:
authorDavid Blaikie <dblaikie@gmail.com>2014-07-23 21:30:59 +0000
committerDavid Blaikie <dblaikie@gmail.com>2014-07-23 21:30:59 +0000
commitf997c6f90b6a756a12c85c36c4d1e7d9e471393d (patch)
treea07bff8570d1b4c0a7935e50f20dbb29825d5342 /llvm/test
parent23314e1ca628594504347dc42f3728d8285c8dee (diff)
downloadbcm5719-llvm-f997c6f90b6a756a12c85c36c4d1e7d9e471393d.tar.gz
bcm5719-llvm-f997c6f90b6a756a12c85c36c4d1e7d9e471393d.zip
Test debug info in arg promotion with an actual promotion case, rather than a degenerate arg promotion that's actually DAE performed by ArgPromo
Also the debug location I had here was bogus, describing the location of the call site as in the callee - and unnecessary, so just drop it. llvm-svn: 213803
Diffstat (limited to 'llvm/test')
-rw-r--r--llvm/test/Transforms/ArgumentPromotion/dbg.ll13
1 files changed, 8 insertions, 5 deletions
diff --git a/llvm/test/Transforms/ArgumentPromotion/dbg.ll b/llvm/test/Transforms/ArgumentPromotion/dbg.ll
index 70503afb587..fd0b1e996eb 100644
--- a/llvm/test/Transforms/ArgumentPromotion/dbg.ll
+++ b/llvm/test/Transforms/ArgumentPromotion/dbg.ll
@@ -1,14 +1,17 @@
; RUN: opt < %s -argpromotion -S | FileCheck %s
-; CHECK: call void @test(), !dbg [[DBG_LOC:![0-9]]]
-; CHECK: [[TEST_FN:.*]] = {{.*}} void ()* @test
-; CHECK: [[DBG_LOC]] = metadata !{i32 8, i32 0, metadata [[TEST_FN]], null}
+; CHECK: call void @test(i32 %
+; CHECK: void (i32)* @test, {{.*}} ; [ DW_TAG_subprogram ] {{.*}} [test]
+
+declare void @sink(i32)
define internal void @test(i32* %X) {
+ %1 = load i32* %X, align 8
+ call void @sink(i32 %1)
ret void
}
-define void @caller() {
- call void @test(i32* null), !dbg !1
+define void @caller(i32* %Y) {
+ call void @test(i32* %Y)
ret void
}
OpenPOWER on IntegriCloud