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

Paul Robinson via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Jun 5 12:55:48 PDT 2023


This revision was automatically updated to reflect the committed changes.
Closed by commit rG8625c2031ce0: Test case improvement (Do not optimize debug locations across section… (authored by pcalixte, committed by probinson).

Changed prior to commit:
  https://reviews.llvm.org/D150308?vs=521100&id=528549#toc

Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D150308/new/

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.528549.patch
Type: text/x-patch
Size: 860 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20230605/09c8c987/attachment.bin>


More information about the llvm-commits mailing list