summaryrefslogtreecommitdiffstats
path: root/llvm/test/DebugInfo/X86/isel-cse-line.ll
diff options
context:
space:
mode:
authorAdrian Prantl <aprantl@apple.com>2016-12-22 00:45:21 +0000
committerAdrian Prantl <aprantl@apple.com>2016-12-22 00:45:21 +0000
commit1eadba1c8c813aa7f53c784711ace70daa73b474 (patch)
tree33e988c4a144a9c6862d46dafdab31c3198f0a1f /llvm/test/DebugInfo/X86/isel-cse-line.ll
parent58c19106429a98c3f3f5c7d36282774432326784 (diff)
downloadbcm5719-llvm-1eadba1c8c813aa7f53c784711ace70daa73b474.tar.gz
bcm5719-llvm-1eadba1c8c813aa7f53c784711ace70daa73b474.zip
Renumber testcase metadata nodes after r290153.
This patch renumbers the metadata nodes in debug info testcases after https://reviews.llvm.org/D26769. This is a separate patch because it causes so much churn. This was implemented with a python script that pipes the testcases through llvm-as - | llvm-dis - and then goes through the original and new output side-by side to insert all comments at a close-enough location. Differential Revision: https://reviews.llvm.org/D27765 llvm-svn: 290292
Diffstat (limited to 'llvm/test/DebugInfo/X86/isel-cse-line.ll')
-rw-r--r--llvm/test/DebugInfo/X86/isel-cse-line.ll115
1 files changed, 60 insertions, 55 deletions
diff --git a/llvm/test/DebugInfo/X86/isel-cse-line.ll b/llvm/test/DebugInfo/X86/isel-cse-line.ll
index 94502fc9a21..4e0d4b924c3 100644
--- a/llvm/test/DebugInfo/X86/isel-cse-line.ll
+++ b/llvm/test/DebugInfo/X86/isel-cse-line.ll
@@ -28,73 +28,78 @@
; CHECK-NOT: .loc 1 12
; ModuleID = 't.cpp'
+source_filename = "test/DebugInfo/X86/isel-cse-line.ll"
target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"
-@glb_start = global i64 17, align 8, !dbg !7
-@glb_end = global i64 42, align 8, !dbg !10
+@glb_start = global i64 17, align 8, !dbg !0
+@glb_end = global i64 42, align 8, !dbg !9
-; Function Attrs: norecurse nounwind uwtable
-define i32 @main() !dbg !14 {
+define i32 @main() !dbg !16 {
%1 = alloca i32, align 4
%2 = alloca i64, align 8
%3 = alloca i64, align 8
%4 = alloca double, align 8
%5 = alloca double, align 8
store i32 0, i32* %1, align 4
- call void @llvm.dbg.declare(metadata i64* %2, metadata !18, metadata !19), !dbg !20
- %6 = load i64, i64* @glb_start, align 8, !dbg !21
- store i64 %6, i64* %2, align 8, !dbg !20
- call void @llvm.dbg.declare(metadata i64* %3, metadata !22, metadata !19), !dbg !23
- %7 = load i64, i64* @glb_end, align 8, !dbg !24
- store i64 %7, i64* %3, align 8, !dbg !23
- call void @llvm.dbg.declare(metadata double* %4, metadata !25, metadata !19), !dbg !26
- %8 = load i64, i64* %2, align 8, !dbg !27
- %9 = uitofp i64 %8 to double, !dbg !27
- store double %9, double* %4, align 8, !dbg !26
- call void @llvm.dbg.declare(metadata double* %5, metadata !28, metadata !19), !dbg !29
- %10 = load i64, i64* %3, align 8, !dbg !30
- %11 = uitofp i64 %10 to double, !dbg !30
- store double %11, double* %5, align 8, !dbg !29
- ret i32 0, !dbg !31
+ call void @llvm.dbg.declare(metadata i64* %2, metadata !20, metadata !21), !dbg !22
+ %6 = load i64, i64* @glb_start, align 8, !dbg !23
+ store i64 %6, i64* %2, align 8, !dbg !22
+ call void @llvm.dbg.declare(metadata i64* %3, metadata !24, metadata !21), !dbg !25
+ %7 = load i64, i64* @glb_end, align 8, !dbg !26
+ store i64 %7, i64* %3, align 8, !dbg !25
+ call void @llvm.dbg.declare(metadata double* %4, metadata !27, metadata !21), !dbg !28
+ %8 = load i64, i64* %2, align 8, !dbg !29
+ %9 = uitofp i64 %8 to double, !dbg !29
+ store double %9, double* %4, align 8, !dbg !28
+ call void @llvm.dbg.declare(metadata double* %5, metadata !30, metadata !21), !dbg !31
+ %10 = load i64, i64* %3, align 8, !dbg !32
+ %11 = uitofp i64 %10 to double, !dbg !32
+ store double %11, double* %5, align 8, !dbg !31
+ ret i32 0, !dbg !33
}
; Function Attrs: nounwind readnone
-declare void @llvm.dbg.declare(metadata, metadata, metadata)
+declare void @llvm.dbg.declare(metadata, metadata, metadata) #0
-!llvm.dbg.cu = !{!0}
-!llvm.module.flags = !{!11, !12}
-!llvm.ident = !{!13}
+attributes #0 = { nounwind readnone }
+
+!llvm.dbg.cu = !{!2}
+!llvm.module.flags = !{!13, !14}
+!llvm.ident = !{!15}
+
+!0 = distinct !DIGlobalVariableExpression(var: !1)
+!1 = !DIGlobalVariable(name: "glb_start", scope: !2, file: !3, line: 4, type: !11, isLocal: false, isDefinition: true)
+!2 = distinct !DICompileUnit(language: DW_LANG_C_plus_plus, file: !3, producer: "clang version 3.9.0 (trunk 268246)", isOptimized: false, runtimeVersion: 0, emissionKind: FullDebug, enums: !4, retainedTypes: !5, globals: !8)
+!3 = !DIFile(filename: "/home/wpieb/test/D12094.cpp", directory: "/home/wpieb/build/llvm/trunk/llvm-RelWithDebInfo")
+!4 = !{}
+!5 = !{!6}
+!6 = !DIDerivedType(tag: DW_TAG_typedef, name: "fp_t", file: !3, line: 1, baseType: !7)
+!7 = !DIBasicType(name: "double", size: 64, align: 64, encoding: DW_ATE_float)
+!8 = !{!0, !9}
+!9 = distinct !DIGlobalVariableExpression(var: !10)
+!10 = !DIGlobalVariable(name: "glb_end", scope: !2, file: !3, line: 5, type: !11, isLocal: false, isDefinition: true)
+!11 = !DIDerivedType(tag: DW_TAG_typedef, name: "int_t", file: !3, line: 2, baseType: !12)
+!12 = !DIBasicType(name: "long unsigned int", size: 64, align: 64, encoding: DW_ATE_unsigned)
+!13 = !{i32 2, !"Dwarf Version", i32 4}
+!14 = !{i32 2, !"Debug Info Version", i32 3}
+!15 = !{!"clang version 3.9.0 (trunk 268246)"}
+!16 = distinct !DISubprogram(name: "main", scope: !3, file: !3, line: 7, type: !17, isLocal: false, isDefinition: true, scopeLine: 8, flags: DIFlagPrototyped, isOptimized: false, unit: !2, variables: !4)
+!17 = !DISubroutineType(types: !18)
+!18 = !{!19}
+!19 = !DIBasicType(name: "int", size: 32, align: 32, encoding: DW_ATE_signed)
+!20 = !DILocalVariable(name: "start", scope: !16, file: !3, line: 9, type: !11)
+!21 = !DIExpression()
+!22 = !DILocation(line: 9, column: 9, scope: !16)
+!23 = !DILocation(line: 9, column: 17, scope: !16)
+!24 = !DILocalVariable(name: "end", scope: !16, file: !3, line: 10, type: !11)
+!25 = !DILocation(line: 10, column: 9, scope: !16)
+!26 = !DILocation(line: 10, column: 17, scope: !16)
+!27 = !DILocalVariable(name: "dbl_start", scope: !16, file: !3, line: 12, type: !6)
+!28 = !DILocation(line: 12, column: 8, scope: !16)
+!29 = !DILocation(line: 12, column: 27, scope: !16)
+!30 = !DILocalVariable(name: "dbl_end", scope: !16, file: !3, line: 13, type: !6)
+!31 = !DILocation(line: 13, column: 8, scope: !16)
+!32 = !DILocation(line: 13, column: 27, scope: !16)
+!33 = !DILocation(line: 15, column: 3, scope: !16)
-!0 = distinct !DICompileUnit(language: DW_LANG_C_plus_plus, file: !1, producer: "clang version 3.9.0 (trunk 268246)", isOptimized: false, runtimeVersion: 0, emissionKind: FullDebug, enums: !2, retainedTypes: !3, globals: !6)
-!1 = !DIFile(filename: "/home/wpieb/test/D12094.cpp", directory: "/home/wpieb/build/llvm/trunk/llvm-RelWithDebInfo")
-!2 = !{}
-!3 = !{!4}
-!4 = !DIDerivedType(tag: DW_TAG_typedef, name: "fp_t", file: !1, line: 1, baseType: !5)
-!5 = !DIBasicType(name: "double", size: 64, align: 64, encoding: DW_ATE_float)
-!6 = !{!7, !10}
-!7 = distinct !DIGlobalVariableExpression(var: !DIGlobalVariable(name: "glb_start", scope: !0, file: !1, line: 4, type: !8, isLocal: false, isDefinition: true))
-!8 = !DIDerivedType(tag: DW_TAG_typedef, name: "int_t", file: !1, line: 2, baseType: !9)
-!9 = !DIBasicType(name: "long unsigned int", size: 64, align: 64, encoding: DW_ATE_unsigned)
-!10 = distinct !DIGlobalVariableExpression(var: !DIGlobalVariable(name: "glb_end", scope: !0, file: !1, line: 5, type: !8, isLocal: false, isDefinition: true))
-!11 = !{i32 2, !"Dwarf Version", i32 4}
-!12 = !{i32 2, !"Debug Info Version", i32 3}
-!13 = !{!"clang version 3.9.0 (trunk 268246)"}
-!14 = distinct !DISubprogram(name: "main", scope: !1, file: !1, line: 7, type: !15, isLocal: false, isDefinition: true, scopeLine: 8, flags: DIFlagPrototyped, isOptimized: false, unit: !0, variables: !2)
-!15 = !DISubroutineType(types: !16)
-!16 = !{!17}
-!17 = !DIBasicType(name: "int", size: 32, align: 32, encoding: DW_ATE_signed)
-!18 = !DILocalVariable(name: "start", scope: !14, file: !1, line: 9, type: !8)
-!19 = !DIExpression()
-!20 = !DILocation(line: 9, column: 9, scope: !14)
-!21 = !DILocation(line: 9, column: 17, scope: !14)
-!22 = !DILocalVariable(name: "end", scope: !14, file: !1, line: 10, type: !8)
-!23 = !DILocation(line: 10, column: 9, scope: !14)
-!24 = !DILocation(line: 10, column: 17, scope: !14)
-!25 = !DILocalVariable(name: "dbl_start", scope: !14, file: !1, line: 12, type: !4)
-!26 = !DILocation(line: 12, column: 8, scope: !14)
-!27 = !DILocation(line: 12, column: 27, scope: !14)
-!28 = !DILocalVariable(name: "dbl_end", scope: !14, file: !1, line: 13, type: !4)
-!29 = !DILocation(line: 13, column: 8, scope: !14)
-!30 = !DILocation(line: 13, column: 27, scope: !14)
-!31 = !DILocation(line: 15, column: 3, scope: !14)
OpenPOWER on IntegriCloud