annotate llvm/test/Transforms/SROA/dbg-single-piece.ll @ 150:1d019706d866

LLVM10
author anatofuz
date Thu, 13 Feb 2020 15:10:13 +0900
parents
children c4bab56944e8
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
150
anatofuz
parents:
diff changeset
1 ; RUN: opt -sroa %s -S | FileCheck %s
anatofuz
parents:
diff changeset
2 target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128"
anatofuz
parents:
diff changeset
3
anatofuz
parents:
diff changeset
4 %foo = type { [8 x i8], [8 x i8] }
anatofuz
parents:
diff changeset
5
anatofuz
parents:
diff changeset
6 declare void @llvm.dbg.declare(metadata, metadata, metadata) #0
anatofuz
parents:
diff changeset
7 define void @_ZL18findInsertLocationPN4llvm17MachineBasicBlockENS_9SlotIndexERNS_13LiveIntervalsE() {
anatofuz
parents:
diff changeset
8 entry:
anatofuz
parents:
diff changeset
9 %retval = alloca %foo, align 8
anatofuz
parents:
diff changeset
10 call void @llvm.dbg.declare(metadata %foo* %retval, metadata !1, metadata !7), !dbg !8
anatofuz
parents:
diff changeset
11 ; Checks that SROA still inserts a bit_piece expression, even if it produces only one piece
anatofuz
parents:
diff changeset
12 ; (as long as that piece is smaller than the whole thing)
anatofuz
parents:
diff changeset
13 ; CHECK-NOT: call void @llvm.dbg.value
anatofuz
parents:
diff changeset
14 ; CHECK: call void @llvm.dbg.value(metadata %foo* undef, {{.*}}, metadata !DIExpression(DW_OP_LLVM_fragment, 64, 64)), !dbg
anatofuz
parents:
diff changeset
15 ; CHECK-NOT: call void @llvm.dbg.value
anatofuz
parents:
diff changeset
16 %0 = bitcast %foo* %retval to i8*
anatofuz
parents:
diff changeset
17 %1 = getelementptr inbounds i8, i8* %0, i64 8
anatofuz
parents:
diff changeset
18 %2 = bitcast i8* %1 to %foo**
anatofuz
parents:
diff changeset
19 store %foo* undef, %foo** %2, align 8
anatofuz
parents:
diff changeset
20 ret void
anatofuz
parents:
diff changeset
21 }
anatofuz
parents:
diff changeset
22
anatofuz
parents:
diff changeset
23 attributes #0 = { nounwind readnone }
anatofuz
parents:
diff changeset
24
anatofuz
parents:
diff changeset
25 !llvm.dbg.cu = !{!9}
anatofuz
parents:
diff changeset
26 !llvm.module.flags = !{!0}
anatofuz
parents:
diff changeset
27
anatofuz
parents:
diff changeset
28 !0 = !{i32 2, !"Debug Info Version", i32 3}
anatofuz
parents:
diff changeset
29 !1 = !DILocalVariable(name: "I", scope: !2, file: !3, line: 947, type: !4)
anatofuz
parents:
diff changeset
30 !2 = distinct !DISubprogram(name: "findInsertLocation", linkageName: "_ZL18findInsertLocationPN4llvm17MachineBasicBlockENS_9SlotIndexERNS_13LiveIntervalsE", scope: !3, file: !3, line: 937, isLocal: true, isDefinition: true, scopeLine: 938, flags: DIFlagPrototyped, isOptimized: true, unit: !9)
anatofuz
parents:
diff changeset
31 !3 = !DIFile(filename: "none", directory: ".")
anatofuz
parents:
diff changeset
32 !4 = !DICompositeType(tag: DW_TAG_class_type, name: "bundle_iterator<llvm::MachineInstr, llvm::ilist_iterator<llvm::MachineInstr> >", scope: !5, file: !3, line: 163, size: 128, align: 64, elements: !6, templateParams: !6, identifier: "_ZTSN4llvm17MachineBasicBlock15bundle_iteratorINS_12MachineInstrENS_14ilist_iteratorIS2_EEEE")
anatofuz
parents:
diff changeset
33 !5 = distinct !DICompositeType(tag: DW_TAG_class_type, name: "MachineBasicBlock", file: !3, line: 68, size: 1408, align: 64, identifier: "_ZTSN4llvm17MachineBasicBlockE")
anatofuz
parents:
diff changeset
34 !6 = !{}
anatofuz
parents:
diff changeset
35 !7 = !DIExpression()
anatofuz
parents:
diff changeset
36 !8 = !DILocation(line: 947, column: 35, scope: !2)
anatofuz
parents:
diff changeset
37 !9 = distinct !DICompileUnit(language: DW_LANG_Julia, file: !3)