blob: be539a6c620093d568f779449293f4fd8240dc48 [file] [log] [blame]
Kyle Butt6262ca32016-08-24 21:34:24 +00001; RUN: llc -O2 -o - %s | FileCheck %s
2target datalayout = "e-m:e-p:32:32-i64:64-v128:64:128-a:0:32-n32-S64"
3target triple = "thumbv7-unknown-linux-gnueabihf"
4
5; Function Attrs: argmemonly nounwind
Matt Arsenaultf10061e2017-04-10 20:18:21 +00006declare void @llvm.lifetime.start.p0i8(i64, i8* nocapture) #0
Kyle Butt6262ca32016-08-24 21:34:24 +00007
8; Function Attrs: nounwind
9declare void @_ZNSaIcEC2Ev() unnamed_addr #0 align 2
10
11declare 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
Francis Visoiu Mistrih25528d62017-12-04 17:18:51 +000016; CHECK: %bb.1
Kyle Butt6262ca32016-08-24 21:34:24 +000017; CHECK: .LBB0_2
18; Function Attrs: nounwind
19define hidden void @_ZN4llvm14DOTGraphTraitsIPNS_13ScheduleDAGMIEE17getEdgeAttributesEPKNS_5SUnitENS_13SUnitIteratorEPKNS_11ScheduleDAGE() #0 align 2 {
20 br i1 undef, label %1, label %2
21
22; <label>:1: ; preds = %0
23 call void @_ZNSaIcEC2Ev() #0
24 call void @_ZNSsC1EPKcRKSaIcE()
25 br label %3
26
27; <label>:2: ; preds = %0
Matt Arsenaultf10061e2017-04-10 20:18:21 +000028 call void @llvm.lifetime.start.p0i8(i64 1, i8* undef) #0
Kyle Butt6262ca32016-08-24 21:34:24 +000029 call void @_ZNSaIcEC2Ev() #0
30 br label %3
31
32; <label>:3: ; preds = %2, %1
33 ret void
34}
35
36attributes #0 = { nounwind }