brintos

brintos / llvm-project-archived public Read only

0
0
Text · 2.0 KiB · 7f6f128 Raw
50 lines · plain
1; RUN: opt %loadNPMPolly '-passes=polly<no-default-opts>' -disable-output < %s2;3; This caused dominance problems at some point as we do bail out during4; code generation. Just verify it runs through.5;6target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128"7 8%struct.hashheader.0.5.10.165.180.185 = type { i16, i16, i16, i16, i16, i16, i32, i32, i32, i32, i32, i32, i32, i32, i32, [5 x i8], [13 x i8], i8, i8, i8, [228 x i16], [228 x i8], [228 x i8], [228 x i8], [228 x i8], [228 x i8], [228 x i8], [128 x i8], [100 x [11 x i8]], [100 x i32], [100 x i32], i16 }9 10@hashheader = external global %struct.hashheader.0.5.10.165.180.185, align 411 12; Function Attrs: nounwind uwtable13define void @strtoichar(ptr %in) #0 {14entry:15  br i1 undef, label %land.rhs, label %for.end16 17land.rhs:                                         ; preds = %for.inc, %entry18  %in.addr.012 = phi ptr [ undef, %for.inc ], [ %in, %entry ]19  %0 = load i8, ptr %in.addr.012, align 120  br i1 undef, label %for.end, label %for.body21 22for.body:                                         ; preds = %land.rhs23  %idxprom = zext i8 %0 to i6424  %arrayidx = getelementptr inbounds %struct.hashheader.0.5.10.165.180.185, ptr @hashheader, i64 0, i32 27, i64 %idxprom25  %1 = load i8, ptr %arrayidx, align 126  %tobool = icmp eq i8 %1, 027  br i1 %tobool, label %if.else, label %land.rhs.728 29land.rhs.7:                                       ; preds = %for.body30  tail call void @stringcharlen()31  br i1 undef, label %if.then, label %if.else32 33if.then:                                          ; preds = %land.rhs.734  br label %for.inc35 36if.else:                                          ; preds = %land.rhs.7, %for.body37  %2 = load i8, ptr %in.addr.012, align 138  br label %for.inc39 40for.inc:                                          ; preds = %if.else, %if.then41  %len.1 = phi i32 [ 0, %if.else ], [ undef, %if.then ]42  br i1 undef, label %land.rhs, label %for.end43 44for.end:                                          ; preds = %for.inc, %land.rhs, %entry45  ret void46}47 48; Function Attrs: nounwind uwtable49declare void @stringcharlen() #050