llvm.org GIT mirror llvm / 504d1d2
AggressiveAntiDepBreaker needs to skip debug values because a debug value does not have a corresponding SUnit git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@148260 91177308-0d34-0410-b5e6-96231b3b80d8 Hal Finkel 8 years ago
2 changed file(s) with 43 addition(s) and 0 deletion(s). Raw diff Collapse all Expand all
778778 for (MachineBasicBlock::iterator I = End, E = Begin;
779779 I != E; --Count) {
780780 MachineInstr *MI = --I;
781
782 if (MI->isDebugValue())
783 continue;
781784
782785 DEBUG(dbgs() << "Anti: ");
783786 DEBUG(MI->dump());
0 ; RUN: llc < %s -break-anti-dependencies=all -march=ppc64 -mcpu=g5 | FileCheck %s
1 ; CHECK: main:
2
3 target datalayout = "E-p:64:64:64-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:64:64-f32:32:32-f64:64:64-v128:128:128-n32:64"
4 target triple = "powerpc64-unknown-linux-gnu"
5
6 define i32 @main(i32 %argc, i8** nocapture %argv) nounwind readnone {
7 entry:
8 tail call void @llvm.dbg.value(metadata !{i32 %argc}, i64 0, metadata !15), !dbg !17
9 tail call void @llvm.dbg.value(metadata !{i8** %argv}, i64 0, metadata !16), !dbg !18
10 %add = add nsw i32 %argc, 1, !dbg !19
11 ret i32 %add, !dbg !19
12 }
13
14 declare void @llvm.dbg.value(metadata, i64, metadata) nounwind readnone
15
16 !llvm.dbg.cu = !{!0}
17
18 !0 = metadata !{i32 720913, i32 0, i32 12, metadata !"dbg.c", metadata !"/src", metadata !"clang version 3.1", i1 true, i1 true, metadata !"", i32 0, metadata !1, metadata !1, metadata !3, metadata !1} ; [ DW_TAG_compile_unit ]
19 !1 = metadata !{metadata !2}
20 !2 = metadata !{i32 0}
21 !3 = metadata !{metadata !4}
22 !4 = metadata !{metadata !5}
23 !5 = metadata !{i32 720942, i32 0, metadata !6, metadata !"main", metadata !"main", metadata !"", metadata !6, i32 1, metadata !7, i1 false, i1 true, i32 0, i32 0, null, i32 256, i1 true, i32 (i32, i8**)* @main, null, null, metadata !13} ; [ DW_TAG_subprogram ]
24 !6 = metadata !{i32 720937, metadata !"dbg.c", metadata !"/src", null} ; [ DW_TAG_file_type ]
25 !7 = metadata !{i32 720917, i32 0, metadata !"", i32 0, i32 0, i64 0, i64 0, i64 0, i32 0, null, metadata !8, i32 0, i32 0} ; [ DW_TAG_subroutine_type ]
26 !8 = metadata !{metadata !9, metadata !9, metadata !10}
27 !9 = metadata !{i32 720932, null, metadata !"int", null, i32 0, i64 32, i64 32, i64 0, i32 0, i32 5} ; [ DW_TAG_base_type ]
28 !10 = metadata !{i32 720911, null, metadata !"", null, i32 0, i64 64, i64 64, i64 0, i32 0, metadata !11} ; [ DW_TAG_pointer_type ]
29 !11 = metadata !{i32 720911, null, metadata !"", null, i32 0, i64 64, i64 64, i64 0, i32 0, metadata !12} ; [ DW_TAG_pointer_type ]
30 !12 = metadata !{i32 720932, null, metadata !"char", null, i32 0, i64 8, i64 8, i64 0, i32 0, i32 8} ; [ DW_TAG_base_type ]
31 !13 = metadata !{metadata !14}
32 !14 = metadata !{metadata !15, metadata !16}
33 !15 = metadata !{i32 721153, metadata !5, metadata !"argc", metadata !6, i32 16777217, metadata !9, i32 0, i32 0} ; [ DW_TAG_arg_variable ]
34 !16 = metadata !{i32 721153, metadata !5, metadata !"argv", metadata !6, i32 33554433, metadata !10, i32 0, i32 0} ; [ DW_TAG_arg_variable ]
35 !17 = metadata !{i32 1, i32 14, metadata !5, null}
36 !18 = metadata !{i32 1, i32 26, metadata !5, null}
37 !19 = metadata !{i32 2, i32 3, metadata !20, null}
38 !20 = metadata !{i32 720907, metadata !5, i32 1, i32 34, metadata !6, i32 0} ; [ DW_TAG_lexical_block ]
39