Skip to content

Commit c19e0d6

Browse files
committed
[gcov,test] Update exit-block.ll now that exit block is always the second
Follow-up to 82fecab
1 parent 9a95c09 commit c19e0d6

File tree

1 file changed

+3
-10
lines changed

1 file changed

+3
-10
lines changed

llvm/test/Transforms/GCOVProfiling/exit-block.ll

Lines changed: 3 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,9 @@
33
; RUN: echo '!19 = !{!"%/t/exit-block.ll", !0}' > %t/1
44
; RUN: cat %s %t/1 > %t/2
55

6-
; By default, the exit block is the second.
6+
; The exit block is the second.
77
; RUN: opt -passes=insert-gcov-profiling -disable-output %t/2
8-
; RUN: llvm-cov gcov -n -dump %t/exit-block.gcno 2>&1 | FileCheck --check-prefixes=CHECK,EXIT-SECOND %s
9-
10-
; But we can optionally emit it last, to match GCC<4.8 (r189778).
11-
; RUN: opt -passes=insert-gcov-profiling -default-gcov-version='407*' -disable-output %t/2
12-
; RUN: llvm-cov gcov -n -dump %t/exit-block.gcno 2>&1 | FileCheck --check-prefixes=CHECK,EXIT-SECOND %s
8+
; RUN: llvm-cov gcov -n -dump %t/exit-block.gcno 2>&1 | FileCheck %s
139

1410
target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128"
1511
target triple = "x86_64-unknown-linux-gnu"
@@ -66,10 +62,7 @@ attributes #2 = { nounwind }
6662

6763
; There should be no destination edges for the exit block.
6864
; CHECK: Block : 1 Counter : 0
69-
; EXIT-LAST: Destination Edges
70-
; EXIT-SECOND-NOT: Destination Edges
7165
; CHECK: Block : 2 Counter : 0
7266
; CHECK: Block : 4 Counter : 0
73-
; EXIT-LAST-NOT: Destination Edges
74-
; EXIT-SECOND: Destination Edges
67+
; CHECK: Destination Edges
7568
; CHECK-NOT: Block :

0 commit comments

Comments
 (0)