[llvm] c19e0d6 - [gcov, test] Update exit-block.ll now that exit block is always the second
Fangrui Song via llvm-commits
llvm-commits at lists.llvm.org
Sat Jan 4 10:56:50 PST 2025
Author: Fangrui Song
Date: 2025-01-04T10:56:45-08:00
New Revision: c19e0d63b45f9c97157060c662396820ce2a1621
URL: https://github.com/llvm/llvm-project/commit/c19e0d63b45f9c97157060c662396820ce2a1621
DIFF: https://github.com/llvm/llvm-project/commit/c19e0d63b45f9c97157060c662396820ce2a1621.diff
LOG: [gcov,test] Update exit-block.ll now that exit block is always the second
Follow-up to 82fecab85ae2d72ffac0e44749d99f12d6f71cc0
Added:
Modified:
llvm/test/Transforms/GCOVProfiling/exit-block.ll
Removed:
################################################################################
diff --git a/llvm/test/Transforms/GCOVProfiling/exit-block.ll b/llvm/test/Transforms/GCOVProfiling/exit-block.ll
index 567e22222f5809..1840f045b3ffe8 100644
--- a/llvm/test/Transforms/GCOVProfiling/exit-block.ll
+++ b/llvm/test/Transforms/GCOVProfiling/exit-block.ll
@@ -3,13 +3,9 @@
; RUN: echo '!19 = !{!"%/t/exit-block.ll", !0}' > %t/1
; RUN: cat %s %t/1 > %t/2
-; By default, the exit block is the second.
+; The exit block is the second.
; RUN: opt -passes=insert-gcov-profiling -disable-output %t/2
-; RUN: llvm-cov gcov -n -dump %t/exit-block.gcno 2>&1 | FileCheck --check-prefixes=CHECK,EXIT-SECOND %s
-
-; But we can optionally emit it last, to match GCC<4.8 (r189778).
-; RUN: opt -passes=insert-gcov-profiling -default-gcov-version='407*' -disable-output %t/2
-; RUN: llvm-cov gcov -n -dump %t/exit-block.gcno 2>&1 | FileCheck --check-prefixes=CHECK,EXIT-SECOND %s
+; RUN: llvm-cov gcov -n -dump %t/exit-block.gcno 2>&1 | FileCheck %s
target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"
@@ -66,10 +62,7 @@ attributes #2 = { nounwind }
; There should be no destination edges for the exit block.
; CHECK: Block : 1 Counter : 0
-; EXIT-LAST: Destination Edges
-; EXIT-SECOND-NOT: Destination Edges
; CHECK: Block : 2 Counter : 0
; CHECK: Block : 4 Counter : 0
-; EXIT-LAST-NOT: Destination Edges
-; EXIT-SECOND: Destination Edges
+; CHECK: Destination Edges
; CHECK-NOT: Block :
More information about the llvm-commits
mailing list