Tighten up tests that use -debugify as a shortcut. NFC

These now verify that a given instruction has a specific source
location, rather than any old location. We want to make sure we
propagate the correct locations from one instruction to another.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@356217 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/test/Transforms/InstMerge/st_sink_check_debug.ll b/test/Transforms/InstMerge/st_sink_check_debug.ll
index 94d46a5..3c07891 100644
--- a/test/Transforms/InstMerge/st_sink_check_debug.ll
+++ b/test/Transforms/InstMerge/st_sink_check_debug.ll
@@ -29,4 +29,5 @@
 
 ; CHECK:      @foo
 ; CHECK:      if.end: ; preds = %if.else, %if.then
-; CHECK-NEXT:   %.sink = phi {{.*}} !dbg
+; CHECK-NEXT:   %.sink = phi {{.*}} !dbg ![[DBG:[0-9]+]]
+; CHECK: ![[DBG]] = !DILocation(line: 0,
diff --git a/test/Transforms/JumpThreading/branch-debug-info.ll b/test/Transforms/JumpThreading/branch-debug-info.ll
index 773ed0f..a522648 100644
--- a/test/Transforms/JumpThreading/branch-debug-info.ll
+++ b/test/Transforms/JumpThreading/branch-debug-info.ll
@@ -10,7 +10,7 @@
   br i1 %c0, label %left, label %right
 
  left:
-  br i1 %c0, label %left, label %right
+  br i1 %c0, label %left, label %right ; "line 3" to -debugify
 
  right:
   ret void
@@ -27,7 +27,7 @@
 
  left:
   %c1 = icmp ult i32 %i, %len
-  br i1 %c1, label %right, label %left0
+  br i1 %c1, label %right, label %left0 ; "line 9" to -debugify
 
  left0:
   ret void
@@ -36,6 +36,6 @@
   ret void
 }
 
-; CHECK-DAG: ![[DBG0]] = !DILocation(
-; CHECK-DAG: ![[DBG1]] = !DILocation(
+; CHECK-DAG: ![[DBG0]] = !DILocation(line: 3,
+; CHECK-DAG: ![[DBG1]] = !DILocation(line: 9,
 
diff --git a/test/Transforms/SROA/alignment.ll b/test/Transforms/SROA/alignment.ll
index cbae6be..81f8f2a 100644
--- a/test/Transforms/SROA/alignment.ll
+++ b/test/Transforms/SROA/alignment.ll
@@ -41,11 +41,12 @@
 ; it preserves the original DebugLocation.
 ; DEBUGLOC-LABEL: @test2(
 ; DEBUGLOC: {{.*}} = alloca {{.*}} !dbg ![[DbgLoc:[0-9]+]]
+; DEBUGLOC-LABEL: }
 ;
-; DEBUGLOC: ![[DbgLoc]] = !DILocation(
+; DEBUGLOC: ![[DbgLoc]] = !DILocation(line: 9,
 
 entry:
-  %a = alloca { i8, i8, i8, i8 }, align 2
+  %a = alloca { i8, i8, i8, i8 }, align 2      ; "line 9" to -debugify
   %gep1 = getelementptr { i8, i8, i8, i8 }, { i8, i8, i8, i8 }* %a, i32 0, i32 1
   %cast1 = bitcast i8* %gep1 to i16*
   store volatile i16 0, i16* %cast1
diff --git a/test/Transforms/SimplifyCFG/debug-info-thread-phi.ll b/test/Transforms/SimplifyCFG/debug-info-thread-phi.ll
index f7e91fe..c5eb436 100644
--- a/test/Transforms/SimplifyCFG/debug-info-thread-phi.ll
+++ b/test/Transforms/SimplifyCFG/debug-info-thread-phi.ll
@@ -19,7 +19,7 @@
 
 if.end:                                           ; preds = %if.then, %entry
   store i32 1, i32* %bb, align 4
-  br i1 %tobool, label %if.then.1, label %if.end.1
+  br i1 %tobool, label %if.then.1, label %if.end.1 ; "line 10" to -debugify
 
 if.then.1:                                        ; preds = %if.end
   call void @foo()
@@ -35,4 +35,4 @@
 
 declare void @foo()
 
-; CHECK: ![[DBG]] = !DILocation(
+; CHECK: ![[DBG]] = !DILocation(line: 10,