[PATCH] D150308: Test case improvement (Do not optimize debug locations across section boundaries/D149294)

Pierre Calixte via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed May 10 14:21:21 PDT 2023


pcalixte created this revision.
Herald added a project: All.
pcalixte requested review of this revision.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.

Ensure that the expected location directives are from different sections.


https://reviews.llvm.org/D150308

Files:
  llvm/test/DebugInfo/X86/basic-block-sections-debug-lineinfo-at-section-boundary.ll


Index: llvm/test/DebugInfo/X86/basic-block-sections-debug-lineinfo-at-section-boundary.ll
===================================================================
--- llvm/test/DebugInfo/X86/basic-block-sections-debug-lineinfo-at-section-boundary.ll
+++ llvm/test/DebugInfo/X86/basic-block-sections-debug-lineinfo-at-section-boundary.ll
@@ -12,9 +12,12 @@
 ;
 ; Reduced from the above example, the IR has been modified so that
 ; the store and return instructions have the same DebugLoc; in this
-; context, we should see 2 different directives for line #4
+; context, we should see 2 different directives for line #4 with an
+; intervening section directive.
 ;
-; CHECK-COUNT-2: .loc    0 4 1
+; CHECK: .loc    0 4 1
+; CHECK: .section	.text.func,"ax", at progbits,unique
+; CHECK: .loc    0 4 1
 
 define void @func(i1 %0) !dbg !8 {
   br i1 %0, label %3, label %2


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D150308.521100.patch
Type: text/x-patch
Size: 860 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20230510/e18d4d13/attachment.bin>


More information about the llvm-commits mailing list