]> Gitweb @ Texas Instruments - Open Source Git Repositories - git.TI.com/gitweb - opencl/llvm.git/blobdiff - test/Transforms/ArgumentPromotion/dbg.ll
Test debug info in arg promotion with an actual promotion case, rather than a degener...
[opencl/llvm.git] / test / Transforms / ArgumentPromotion / dbg.ll
index 70503afb5870e934b4f3772fc0fbd83ccdadfc22..fd0b1e996eb5a8355cff31401ab0184559c244eb 100644 (file)
@@ -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
 }