[llvm] r213803 - Test debug info in arg promotion with an actual promotion case, rather than a degenerate arg promotion that's actually DAE performed by ArgPromo

David Blaikie dblaikie at gmail.com
Wed Jul 23 14:31:00 PDT 2014


Author: dblaikie
Date: Wed Jul 23 16:30:59 2014
New Revision: 213803

URL: http://llvm.org/viewvc/llvm-project?rev=213803&view=rev
Log:
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.

Modified:
    llvm/trunk/test/Transforms/ArgumentPromotion/dbg.ll

Modified: llvm/trunk/test/Transforms/ArgumentPromotion/dbg.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/Transforms/ArgumentPromotion/dbg.ll?rev=213803&r1=213802&r2=213803&view=diff
==============================================================================
--- llvm/trunk/test/Transforms/ArgumentPromotion/dbg.ll (original)
+++ llvm/trunk/test/Transforms/ArgumentPromotion/dbg.ll Wed Jul 23 16:30:59 2014
@@ -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
 }
 





More information about the llvm-commits mailing list