summaryrefslogtreecommitdiffstats
path: root/llvm/test/Transforms/SimplifyCFG/remove-debug-2.ll
diff options
context:
space:
mode:
Diffstat (limited to 'llvm/test/Transforms/SimplifyCFG/remove-debug-2.ll')
-rw-r--r--llvm/test/Transforms/SimplifyCFG/remove-debug-2.ll8
1 files changed, 4 insertions, 4 deletions
diff --git a/llvm/test/Transforms/SimplifyCFG/remove-debug-2.ll b/llvm/test/Transforms/SimplifyCFG/remove-debug-2.ll
index 6362f53e14c..f50154f7dbf 100644
--- a/llvm/test/Transforms/SimplifyCFG/remove-debug-2.ll
+++ b/llvm/test/Transforms/SimplifyCFG/remove-debug-2.ll
@@ -1,6 +1,7 @@
; RUN: opt < %s -simplifycfg -S | FileCheck %s
-; Check if the debug info for hoisted store for "ret = 0" is removed
+; Check that the debug location for the hoisted store for "ret = 0" is a
+; line-0 location.
;
; int foo(int x) {
; int ret = 1;
@@ -12,12 +13,11 @@
; CHECK: store i32 1,{{.+}}!dbg ![[DLOC1:[0-9]+]]
; CHECK: icmp ne {{.+}}!dbg ![[DLOC2:[0-9]+]]
; CHECK: [[VREG:%[^ ]+]] = select
-; CHECK: store i32 [[VREG]]
-; CHECK-NOT: !dbg
-; CHECK-SAME: {{$}}
+; CHECK: store i32 [[VREG]],{{.*}} !dbg [[storeLoc:![0-9]+]]
; CHECK: ret {{.+}}!dbg ![[DLOC3:[0-9]+]]
; CHECK: ![[DLOC1]] = !DILocation(line: 2
; CHECK: ![[DLOC2]] = !DILocation(line: 3
+; CHECK: [[storeLoc]] = !DILocation(line: 0
; CHECK: ![[DLOC3]] = !DILocation(line: 5
target triple = "x86_64-unknown-linux-gnu"
OpenPOWER on IntegriCloud