[llvm] 8625c20 - Test case improvement (Do not optimize debug locations across section boundaries/D149294)
Paul Robinson via llvm-commits
llvm-commits at lists.llvm.org
Mon Jun 5 12:55:48 PDT 2023
Author: Pierre Calixte
Date: 2023-06-05T12:55:39-07:00
New Revision: 8625c2031ce01d048d6800a40de7c24b7d20a32f
URL: https://github.com/llvm/llvm-project/commit/8625c2031ce01d048d6800a40de7c24b7d20a32f
DIFF: https://github.com/llvm/llvm-project/commit/8625c2031ce01d048d6800a40de7c24b7d20a32f.diff
LOG: Test case improvement (Do not optimize debug locations across section boundaries/D149294)
Ensure that the expected location directives are from different sections.
Differential Revision: https://reviews.llvm.org/D150308
Added:
Modified:
llvm/test/DebugInfo/X86/basic-block-sections-debug-lineinfo-at-section-boundary.ll
Removed:
################################################################################
diff --git a/llvm/test/DebugInfo/X86/basic-block-sections-debug-lineinfo-at-section-boundary.ll b/llvm/test/DebugInfo/X86/basic-block-sections-debug-lineinfo-at-section-boundary.ll
index 63eadef089507..6262fe08bfa5c 100644
--- a/llvm/test/DebugInfo/X86/basic-block-sections-debug-lineinfo-at-section-boundary.ll
+++ b/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
diff erent directives for line #4
+; context, we should see 2
diff erent 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
More information about the llvm-commits
mailing list