1 ; RUN: llc < %s -verify-coalescing
4 ; Dead code elimination during coalesing causes a live range to split into two
5 ; virtual registers. Stale identity copies that had already been joined were
6 ; interfering with the liveness computations.
8 target triple = "i386-pc-linux-gnu"
10 define void @_ZN4llvm17AsmMatcherEmitter3runERNS_11raw_ostreamE() align 2 personality ptr @__gxx_personality_v0 {
11 invoke void @_ZNK4llvm13CodeGenTarget12getAsmParserEv()
12 to label %1 unwind label %5
14 ; <label>:1 ; preds = %0
15 invoke void @_ZNK4llvm6Record16getValueAsStringENS_9StringRefE()
16 to label %4 unwind label %2
18 ; <label>:2 ; preds = %1
19 %3 = landingpad { ptr, i32 }
23 ; <label>:4 ; preds = %1
24 invoke void @_ZN4llvm18isCurrentDebugTypeEPKc()
25 to label %12 unwind label %7
27 ; <label>:5 ; preds = %0
28 %6 = landingpad { ptr, i32 }
32 ; <label>:7 ; preds = %4
33 %8 = landingpad { ptr, i32 }
37 ; <label>:9 ; preds = %28, %7
38 %10 = phi { ptr, i32 } [ %29, %28 ], [ %8, %7 ]
39 %11 = extractvalue { ptr, i32 } %10, 1
40 invoke fastcc void @_ZN12_GLOBAL__N_114AsmMatcherInfoD2Ev()
41 to label %32 unwind label %35
43 ; <label>:12 ; preds = %4
44 invoke void @_ZNK4llvm13CodeGenTarget10getRegBankEv()
45 to label %13 unwind label %16
47 ; <label>:13 ; preds = %12
50 ; <label>:14 ; preds = %20, %13
51 %15 = icmp eq i32 undef, 0
52 br i1 %15, label %20, label %18
54 ; <label>:16 ; preds = %12
55 %17 = landingpad { ptr, i32 }
59 ; <label>:18 ; preds = %14
60 invoke void @_ZNSs4_Rep9_S_createEjjRKSaIcE()
61 to label %19 unwind label %21
63 ; <label>:19 ; preds = %18
66 ; <label>:20 ; preds = %14
69 ; <label>:21 ; preds = %18
70 %22 = landingpad { ptr, i32 }
72 %23 = extractvalue { ptr, i32 } %22, 1
73 br i1 undef, label %26, label %24
75 ; <label>:24 ; preds = %21
76 br i1 undef, label %25, label %26
78 ; <label>:25 ; preds = %24
81 ; <label>:26 ; preds = %24, %21, %16
82 %27 = phi i32 [ 0, %16 ], [ %23, %21 ], [ %23, %24 ]
83 invoke void @_ZNSt6vectorISt4pairISsSsESaIS1_EED1Ev()
84 to label %28 unwind label %30
86 ; <label>:28 ; preds = %26
87 %29 = insertvalue { ptr, i32 } undef, i32 %27, 1
90 ; <label>:30 ; preds = %26
91 %31 = landingpad { ptr, i32 }
95 ; <label>:32 ; preds = %9
98 ; <label>:33 ; preds = %32, %5
99 %34 = phi i32 [ undef, %5 ], [ %11, %32 ]
102 ; <label>:35 ; preds = %9
103 %36 = landingpad { ptr, i32 }
108 declare void @_ZNK4llvm13CodeGenTarget12getAsmParserEv()
110 declare i32 @__gxx_personality_v0(...)
112 declare void @_ZNK4llvm6Record16getValueAsStringENS_9StringRefE()
114 declare void @_ZN4llvm18isCurrentDebugTypeEPKc()
116 declare fastcc void @_ZN12_GLOBAL__N_114AsmMatcherInfoD2Ev() unnamed_addr inlinehint align 2
118 declare hidden void @_ZNSt6vectorISt4pairISsSsESaIS1_EED1Ev() unnamed_addr align 2
120 declare void @_ZNSs4_Rep9_S_createEjjRKSaIcE()
122 declare void @_ZNK4llvm13CodeGenTarget10getRegBankEv()