Debian Codegraph @

llvm/test/CodeGen/Thumb2/ifcvt-rescan-bug-2016-08-22.ll

raw
1 ; RUN: llc -O2 -o - %s | FileCheck %s
2 target datalayout = "e-m:e-p:32:32-i64:64-v128:64:128-a:0:32-n32-S64"
3 target triple = "thumbv7-unknown-linux-gnueabihf"
4
5 ; Function Attrs: argmemonly nounwind
6 declare void @llvm.lifetime.start.p0(i64, ptr nocapture) #0
7
8 ; Function Attrs: nounwind
9 declare void @_ZNSaIcEC2Ev() unnamed_addr #0 align 2
10
11 declare void @_ZNSsC1EPKcRKSaIcE() unnamed_addr #0
12
13 ; It isn't valid to If-Convert the following function, even though the calls
14 ; are in common. The calls clobber the predicate info.
15 ; CHECK: cbnz r{{[0-9]+}}, .LBB0_2
16 ; CHECK: %bb.1
17 ; CHECK: .LBB0_2
18 ; Function Attrs: nounwind
19 define hidden void @_ZN4llvm14DOTGraphTraitsIPNS_13ScheduleDAGMIEE17getEdgeAttributesEPKNS_5SUnitENS_13SUnitIteratorEPKNS_11ScheduleDAGE() #0 align 2 {
20 %a = alloca i8
21 br i1 undef, label %1, label %2
22
23 ; <label>:1: ; preds = %0
24 call void @_ZNSaIcEC2Ev() #0
25 call void @_ZNSsC1EPKcRKSaIcE()
26 br label %3
27
28 ; <label>:2: ; preds = %0
29 call void @llvm.lifetime.start.p0(i64 1, ptr %a) #0
30 call void @_ZNSaIcEC2Ev() #0
31 br label %3
32
33 ; <label>:3: ; preds = %2, %1
34 ret void
35 }
36
37 attributes #0 = { nounwind }