diff --git a/llvm/test/Transforms/InstMerge/st_sink_check_debug.ll b/llvm/test/Transforms/InstMerge/st_sink_check_debug.ll index 94d46a58f4cd..3c0789193253 100644 --- a/llvm/test/Transforms/InstMerge/st_sink_check_debug.ll +++ b/llvm/test/Transforms/InstMerge/st_sink_check_debug.ll @@ -29,4 +29,5 @@ if.end: ; preds = %if.else, %if.then ; 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/llvm/test/Transforms/JumpThreading/branch-debug-info.ll b/llvm/test/Transforms/JumpThreading/branch-debug-info.ll index 773ed0f71de1..a5226483f675 100644 --- a/llvm/test/Transforms/JumpThreading/branch-debug-info.ll +++ b/llvm/test/Transforms/JumpThreading/branch-debug-info.ll @@ -10,7 +10,7 @@ define void @test0(i32 %i) { 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 @@ define void @test1(i32 %i, i32 %len) { 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 @@ define void @test1(i32 %i, i32 %len) { 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/llvm/test/Transforms/SROA/alignment.ll b/llvm/test/Transforms/SROA/alignment.ll index cbae6be018c7..81f8f2a00ba8 100644 --- a/llvm/test/Transforms/SROA/alignment.ll +++ b/llvm/test/Transforms/SROA/alignment.ll @@ -41,11 +41,12 @@ define void @test2() { ; 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/llvm/test/Transforms/SimplifyCFG/debug-info-thread-phi.ll b/llvm/test/Transforms/SimplifyCFG/debug-info-thread-phi.ll index f7e91feb4348..c5eb43642bf8 100644 --- a/llvm/test/Transforms/SimplifyCFG/debug-info-thread-phi.ll +++ b/llvm/test/Transforms/SimplifyCFG/debug-info-thread-phi.ll @@ -19,7 +19,7 @@ if.then: ; preds = %entry 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 @@ for.end: ; preds = %if.end.1 declare void @foo() -; CHECK: ![[DBG]] = !DILocation( +; CHECK: ![[DBG]] = !DILocation(line: 10,