Skip to content

Commit 1dc46d4

Browse files
authored
[RemoveDIs] Fix rotten --implicit-check-not lines (#144711)
1 parent ddecfa6 commit 1dc46d4

34 files changed

+34
-34
lines changed

llvm/test/CodeGen/Generic/MIRDebugify/locations-and-values.mir

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# RUN: llc -run-pass=mir-debugify -o - %s | FileCheck --check-prefixes=ALL,VALUE %s
2-
# RUN: llc -run-pass=mir-debugify -debugify-level=locations -o - %s | FileCheck --check-prefixes=ALL --implicit-check-not=dbg.value %s
2+
# RUN: llc -run-pass=mir-debugify -debugify-level=locations -o - %s | FileCheck --check-prefixes=ALL --implicit-check-not=dbg_value %s
33
# RUN: llc -run-pass=mir-debugify,mir-strip-debug,mir-debugify -o - %s | FileCheck --check-prefixes=ALL,VALUE %s
44
# RUN: llc -run-pass=mir-debugify,mir-strip-debug -o - %s | FileCheck --check-prefix=STRIP %s
55

llvm/test/DebugInfo/Generic/assignment-tracking/codegenprepare/sunk-addr.ll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
; REQUIRES: x86-registered-target
22
; RUN: llc -start-before=codegenprepare -stop-after=codegenprepare \
33
; RUN: -mtriple=x86_64-unknown-unknown %s -o - \
4-
; RUN: | FileCheck %s --implicit-check-not="call void @llvm.dbg."
4+
; RUN: | FileCheck %s --implicit-check-not="#dbg_"
55

66
;; Check that when CodeGenPrepare moves an address computation to a block it's
77
;; used in its dbg.assign uses are updated.

llvm/test/DebugInfo/Generic/assignment-tracking/dse/dse-after-memcpyopt-merge.ll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
; RUN: opt %s -S -passes=dse -o - | FileCheck %s --implicit-check-not="call void @llvm.dbg"
1+
; RUN: opt %s -S -passes=dse -o - | FileCheck %s --implicit-check-not="#dbg_"
22

33
;; Observed in the wild, but test is created by running memcpyopt on
44
;; assignment-tracking/memcpyopt/merge-stores.ll then manually inserting

llvm/test/DebugInfo/Generic/assignment-tracking/dse/shorten-offset.ll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
; RUN: opt %s -S -passes=dse -o - | FileCheck %s --implicit-check-not="call void @llvm.dbg"
1+
; RUN: opt %s -S -passes=dse -o - | FileCheck %s --implicit-check-not="#dbg_"
22

33
;; Based on the test shorten.ll with some adjustments.
44
;;

llvm/test/DebugInfo/Generic/assignment-tracking/inline/shared-alloca.ll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
; RUN: opt -S %s -passes=inline -o - \
2-
; RUN: | FileCheck %s --implicit-check-not="call void @llvm.dbg"
2+
; RUN: | FileCheck %s --implicit-check-not="#dbg_"
33

44
;; The dbg.assign linked to the large alloca describes a variable sitting at
55
;; offset 0, size 64. Check:

llvm/test/DebugInfo/Generic/assignment-tracking/instcombine/do-not-remove-redundant-dbg.ll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
; RUN: opt -passes=instcombine -S %s -o - \
2-
; RUN: | FileCheck %s --implicit-check-not="call void @llvm.dbg"
2+
; RUN: | FileCheck %s --implicit-check-not="#dbg_"
33

44
;; Based on the test remove-redundant-dbg.ll.
55
;;

llvm/test/DebugInfo/Generic/assignment-tracking/instcombine/remove-redundant-dbg.ll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
; RUN: opt -passes=sroa -S %s -o - \
2-
; RUN: | FileCheck %s --implicit-check-not="call void @llvm.dbg"
2+
; RUN: | FileCheck %s --implicit-check-not="#dbg_"
33

44
;; Check that sroa removes redundant debug intrinsics after it makes a
55
;; change. This has a significant positive impact on peak memory and compiler

llvm/test/DebugInfo/Generic/assignment-tracking/loop-vectorize/remove-redundant-dbg.ll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
; RUN: opt %s -passes=loop-vectorize -force-vector-width=2 -force-vector-interleave=2 -S -o - \
2-
; RUN: | FileCheck %s --implicit-check-not="call void @llvm.dbg"
2+
; RUN: | FileCheck %s --implicit-check-not="#dbg_"
33

44
;; Check that loop-vectorize removes redundant debug intrinsics after it makes
55
;; a change. This has a significant positive impact on peak memory and compiler

llvm/test/DebugInfo/Generic/assignment-tracking/mem2reg/phi.ll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
; RUN: opt -passes=mem2reg -S %s -o - \
2-
; RUN: | FileCheck %s --implicit-check-not="call void @llvm.dbg"
2+
; RUN: | FileCheck %s --implicit-check-not="#dbg_"
33

44
;; Test assignment tracking debug info when mem2reg promotes an alloca with
55
;; stores requiring insertion of a phi. Check the output when the stores are

llvm/test/DebugInfo/Generic/assignment-tracking/mem2reg/single-block-alloca.ll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
; RUN: opt -passes=mem2reg -S %s -o - \
2-
; RUN: | FileCheck %s --implicit-check-not="call void @llvm.dbg"
2+
; RUN: | FileCheck %s --implicit-check-not="#dbg_"
33

44
;; Test assignment tracking debug info when mem2reg promotes a single-block
55
;; alloca. Check the output when the stores are tagged and also untagged (test

llvm/test/DebugInfo/Generic/assignment-tracking/mem2reg/single-store-alloca.ll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
; RUN: opt -passes=mem2reg -S %s -o - \
2-
; RUN: | FileCheck %s --implicit-check-not="call void @llvm.dbg"
2+
; RUN: | FileCheck %s --implicit-check-not="#dbg_"
33

44
;; Test assignment tracking debug info when mem2reg promotes a single-store
55
;; alloca. Additionally, check that all the dbg.assigns linked to the alloca

llvm/test/DebugInfo/Generic/assignment-tracking/mem2reg/store-to-part-of-alloca.ll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
; RUN: opt -passes=mem2reg -S %s -o - | FileCheck %s --implicit-check-not="call void @llvm.dbg"
1+
; RUN: opt -passes=mem2reg -S %s -o - | FileCheck %s --implicit-check-not="#dbg_"
22

33
; CHECK: #dbg_value(i64 0, ![[#]], !DIExpression(DW_OP_LLVM_fragment, 0, 32),
44

llvm/test/DebugInfo/Generic/assignment-tracking/optnone.ll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
; RUN: opt -S %s -o - --passes=declare-to-assign \
2-
; RUN: | FileCheck %s --implicit-check-not="call void @llvm.dbg"
2+
; RUN: | FileCheck %s --implicit-check-not="#dbg_"
33

44
;; Assignment tracking doesn't add any value when optimisations are disabled.
55
;; Check it doesn't get applied to functions marked optnone.

llvm/test/DebugInfo/Generic/assignment-tracking/remove-redundant-fwd-scan-linked.ll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
; RUN: opt -passes=redundant-dbg-inst-elim -S %s -o - \
2-
; RUN: | FileCheck %s --implicit-check-not="call void @llvm.dbg"
2+
; RUN: | FileCheck %s --implicit-check-not="#dbg_"
33

44
;; $ cat -n reduce.c
55
;; 1 void ext();

llvm/test/DebugInfo/Generic/assignment-tracking/remove-redundant.ll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
; RUN: opt -passes=redundant-dbg-inst-elim -S %s -o - \
2-
; RUN: | FileCheck %s --implicit-check-not="call void @llvm.dbg"
2+
; RUN: | FileCheck %s --implicit-check-not="#dbg_"
33

44
;; Hand-written. Test how RemoveRedundantDbgInstrs interacts with dbg.assign
55
;; intrinsics. FileCehck directives are inline.

llvm/test/DebugInfo/Generic/assignment-tracking/salvage-value.ll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
; RUN: opt %s -S -o - -passes=instcombine \
2-
; RUN: | FileCheck %s --implicit-check-not="call void @llvm.dbg"
2+
; RUN: | FileCheck %s --implicit-check-not="#dbg_"
33

44
;; Hand-written (the debug info doesn't necessarily make sense and isn't fully
55
;; formed). Test salvaging a dbg.assign value and address. Checks and comments

llvm/test/DebugInfo/Generic/assignment-tracking/sroa/alloca-single-slice.ll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
; RUN: opt -passes=sroa,verify -S %s -o - \
2-
; RUN: | FileCheck %s --implicit-check-not="call void @llvm.dbg"
2+
; RUN: | FileCheck %s --implicit-check-not="#dbg_"
33

44
; Check that single sliced allocas retain their assignment tracking debug info.
55

llvm/test/DebugInfo/Generic/assignment-tracking/sroa/complex.ll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
; RUN: opt -passes=sroa -S -o - %s \
2-
; RUN: | FileCheck %s --implicit-check-not="call void @llvm.dbg"
2+
; RUN: | FileCheck %s --implicit-check-not="#dbg_"
33
;
44
;; Based on llvm/test/DebugInfo/ARM/sroa-complex.ll
55
;; generated from:

llvm/test/DebugInfo/Generic/assignment-tracking/sroa/fail-fragment.ll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
; RUN: opt -passes=sroa -S %s -o - \
2-
; RUN: | FileCheck %s --implicit-check-not="call void @llvm.dbg"
2+
; RUN: | FileCheck %s --implicit-check-not="#dbg_"
33

44
;; Check that a dbg.assign for a promoted variable becomes a kill location if
55
;; it used a fragment that can't be split (the first check directive below).

llvm/test/DebugInfo/Generic/assignment-tracking/sroa/memcpy.ll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
; RUN: opt -passes=sroa,verify -S %s -o - \
2-
; RUN: | FileCheck %s --implicit-check-not="call void @llvm.dbg"
2+
; RUN: | FileCheck %s --implicit-check-not="#dbg_"
33

44
;; Check that the new slices of an alloca and memcpy intructions get dbg.assign
55
;; intrinsics with the correct fragment info.

llvm/test/DebugInfo/Generic/assignment-tracking/sroa/remove-redundant-dbg.ll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
; RUN: opt -passes=sroa -S %s -o - \
2-
; RUN: | FileCheck %s --implicit-check-not="call void @llvm.dbg"
2+
; RUN: | FileCheck %s --implicit-check-not="#dbg_"
33

44
;; Check that sroa removes redundant debug intrinsics after it makes a
55
;; change. This has a significant positive impact on peak memory and compiler

llvm/test/DebugInfo/Generic/assignment-tracking/sroa/rewrite.ll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
; RUN: opt -passes=sroa,verify -S %s -o - \
2-
; RUN: | FileCheck %s --implicit-check-not="call void @llvm.dbg"
2+
; RUN: | FileCheck %s --implicit-check-not="#dbg_"
33

44
; Check that the new slices of an alloca and memset intructions get dbg.assign
55
; intrinsics with the correct fragment info. Ensure that only the

llvm/test/DebugInfo/Generic/assignment-tracking/sroa/split-pre-fragmented-store-2.ll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
; RUN: opt -S -passes=sroa -sroa-skip-mem2reg %s \
2-
; RUN: | FileCheck %s --implicit-check-not="call void @llvm.dbg"
2+
; RUN: | FileCheck %s --implicit-check-not="#dbg_"
33

44
;; NOTE: This is the same as split-pre-fragmented-store.ll except the base
55
;; alloca's dbg.assign has been altered to contain a fragment of the full

llvm/test/DebugInfo/Generic/assignment-tracking/sroa/split-pre-fragmented-store.ll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
; RUN: opt -S -passes=sroa -sroa-skip-mem2reg %s \
2-
; RUN: | FileCheck %s --implicit-check-not="call void @llvm.dbg"
2+
; RUN: | FileCheck %s --implicit-check-not="#dbg_"
33

44
;; IR hand-modified, originally generated from:
55
;; struct Pair { int a; int b; };

llvm/test/DebugInfo/Generic/assignment-tracking/sroa/store.ll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
; RUN: opt -passes=sroa,verify -S %s -o - \
2-
; RUN: | FileCheck %s --implicit-check-not="call void @llvm.dbg"
2+
; RUN: | FileCheck %s --implicit-check-not="#dbg_"
33

44
; Check that the new slices of an alloca and memset intructions get dbg.assign
55
; intrinsics with the correct fragment info. Ensure that only the

llvm/test/DebugInfo/Generic/assignment-tracking/sroa/user-memcpy.ll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
; RUN: opt -passes=sroa -S %s -o - \
2-
; RUN: | FileCheck %s --implicit-check-not="call void @llvm.dbg"
2+
; RUN: | FileCheck %s --implicit-check-not="#dbg_"
33

44
;; Check that the fragments generated in SROA for a split alloca that has a
55
;; dbg.assign with non-zero-offset fragment are correct.

llvm/test/DebugInfo/Generic/assignment-tracking/track-assignments.ll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
; RUN: opt -passes='declare-to-assign,verify' %s -S -o - \
2-
; RUN: | FileCheck %s --implicit-check-not="call void @llvm.dbg"
2+
; RUN: | FileCheck %s --implicit-check-not="#dbg_"
33

44
;; This test checks that `trackAssignments` is working correctly by using the
55
;; pass-wrapper `declare-to-assign`. Each function checks some specific

llvm/test/DebugInfo/Generic/inline-alloca-ordering.ll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
; RUN: opt %s --passes=inline -o - -S | FileCheck %s --implicit-check-not=dbg.value
1+
; RUN: opt %s --passes=inline -o - -S | FileCheck %s --implicit-check-not=dbg_value
22

33
;; The inliner, specially, hoists all alloca instructions into the entry block
44
;; of the calling function. Ensure that it doesn't accidentally transfer the

llvm/test/DebugInfo/Generic/inline-dbg-values.ll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
; RUN: opt -passes='cgscc(inline)' -S %s -o - -S | FileCheck %s --implicit-check-not=dbg.value
1+
; RUN: opt -passes='cgscc(inline)' -S %s -o - -S | FileCheck %s --implicit-check-not=dbg_value
22

33
;; Test that dbg.value intrinsics are inlined, remapped, and have their
44
;; dilocation updated just like normal instructions. This becomes

llvm/test/Transforms/CallSiteSplitting/callsite-split-preserve-debug.ll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
; RUN: opt -passes=callsite-splitting -S < %s | FileCheck %s --implicit-check-not=dbg.value
1+
; RUN: opt -passes=callsite-splitting -S < %s | FileCheck %s --implicit-check-not=dbg_value
22

33
;; Test that DebugLocs are preserved, and that dbg.values are duplicated.
44

llvm/test/Transforms/LoopDeletion/diundef.ll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
; RUN: opt %s -passes=loop-deletion -S | FileCheck %s --implicit-check-not=dbg.value
1+
; RUN: opt %s -passes=loop-deletion -S | FileCheck %s --implicit-check-not=dbg_value
22

33
target datalayout = "e-m:o-i64:64-f80:128-n8:16:32:64-S128"
44
target triple = "x86_64-apple-macosx10.14.0"

llvm/test/Transforms/LoopRotate/dbgvalue.ll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
; RUN: opt -S -passes=loop-rotate -verify-memoryssa < %s | FileCheck %s --implicit-check-not=dbg.value
1+
; RUN: opt -S -passes=loop-rotate -verify-memoryssa < %s | FileCheck %s --implicit-check-not=dbg_value
22

33
declare void @llvm.dbg.declare(metadata, metadata, metadata) nounwind readnone
44
declare void @llvm.dbg.value(metadata, metadata, metadata) nounwind readnone

llvm/test/Transforms/LoopRotate/delete-dbg-values.ll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
; RUN: opt --passes=loop-rotate -o - -S %s | FileCheck %s --implicit-check-not=dbg.value
1+
; RUN: opt --passes=loop-rotate -o - -S %s | FileCheck %s --implicit-check-not=dbg_value
22
;
33
;; Test some fine-grained behaviour of loop-rotate's de-duplication of
44
;; dbg.values. The intrinsic on the first branch should be seen and

llvm/test/Transforms/Util/Debugify/loc-only.ll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
; RUN: opt -passes=debugify -S < %s | FileCheck --check-prefixes=ALL,VALUE %s
2-
; RUN: opt -passes=debugify -debugify-level=locations -S < %s | FileCheck --check-prefixes=ALL --implicit-check-not=dbg.value %s
2+
; RUN: opt -passes=debugify -debugify-level=locations -S < %s | FileCheck --check-prefixes=ALL --implicit-check-not=dbg_value %s
33

44

55
; ALL-LABEL: @test

0 commit comments

Comments
 (0)