brintos

brintos / llvm-project-archived public Read only

0
0
Text · 1.2 KiB · b70505c Raw
38 lines · plain
1; RUN: llc -O2 -o - %s | FileCheck %s2target 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 nounwind6declare void @llvm.lifetime.start.p0(i64, ptr nocapture) #07 8; Function Attrs: nounwind9declare void @_ZNSaIcEC2Ev() unnamed_addr #0 align 210 11declare void @_ZNSsC1EPKcRKSaIcE() unnamed_addr #012 13; It isn't valid to If-Convert the following function, even though the calls14; are in common. The calls clobber the predicate info.15; CHECK: cbnz r{{[0-9]+}}, .LBB0_216; CHECK: %bb.117; CHECK: .LBB0_218; Function Attrs: nounwind19define hidden void @_ZN4llvm14DOTGraphTraitsIPNS_13ScheduleDAGMIEE17getEdgeAttributesEPKNS_5SUnitENS_13SUnitIteratorEPKNS_11ScheduleDAGE() #0 align 2 {20  %a = alloca i821  br i1 undef, label %1, label %222 23; <label>:1:                                      ; preds = %024  call void @_ZNSaIcEC2Ev() #025  call void @_ZNSsC1EPKcRKSaIcE()26  br label %327 28; <label>:2:                                      ; preds = %029  call void @llvm.lifetime.start.p0(i64 1, ptr %a) #030  call void @_ZNSaIcEC2Ev() #031  br label %332 33; <label>:3:                                      ; preds = %2, %134  ret void35}36 37attributes #0 = { nounwind }38