• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1; RUN: llc %s -o -
2
3; PR6332
4%struct.AVCodecTag = type {}
5@ff_codec_bmp_tags = external global [0 x %struct.AVCodecTag]
6@tags = global [1 x %struct.AVCodecTag*] [%struct.AVCodecTag* getelementptr
7inbounds ([0 x %struct.AVCodecTag], [0 x %struct.AVCodecTag]* @ff_codec_bmp_tags, i32 0, i32 0)]
8
9
10; rdar://8878965
11
12%struct.CAMERA = type { [3 x double], [3 x double], [3 x double], [3 x double], [3 x double], [3 x double], double, double, i32, double, double, i32, double, i32* }
13
14define void @Parse_Camera(%struct.CAMERA** nocapture %Camera_Ptr) nounwind {
15entry:
16%.pre = load %struct.CAMERA*, %struct.CAMERA** %Camera_Ptr, align 4
17%0 = getelementptr inbounds %struct.CAMERA, %struct.CAMERA* %.pre, i32 0, i32 1, i32 0
18%1 = getelementptr inbounds %struct.CAMERA, %struct.CAMERA* %.pre, i32 0, i32 1, i32 2
19br label %bb32
20
21bb32:                                             ; preds = %bb6
22%2 = load double, double* %0, align 4
23%3 = load double, double* %1, align 4
24%4 = load double, double* %0, align 4
25call void @Parse_Vector(double* %0) nounwind
26%5 = call i32 @llvm.objectsize.i32.p0i8(i8* undef, i1 false)
27%6 = icmp eq i32 %5, -1
28br i1 %6, label %bb34, label %bb33
29
30bb33:                                             ; preds = %bb32
31unreachable
32
33bb34:                                             ; preds = %bb32
34unreachable
35
36}
37
38declare void @Parse_Vector(double*)
39declare i32 @llvm.objectsize.i32.p0i8(i8*, i1)
40
41
42; PR9578
43%struct.S0 = type { i32, i8, i32 }
44
45define void @func_82() nounwind optsize {
46entry:
47  br label %for.body.i
48
49for.body.i:                                       ; preds = %for.body.i, %entry
50  br i1 undef, label %func_74.exit.for.cond29.thread_crit_edge, label %for.body.i
51
52func_74.exit.for.cond29.thread_crit_edge:         ; preds = %for.body.i
53  %f13576.pre = getelementptr inbounds %struct.S0, %struct.S0* undef, i64 0, i32 1
54  store i8 0, i8* %f13576.pre, align 4
55  br label %lbl_468
56
57lbl_468:                                          ; preds = %lbl_468, %func_74.exit.for.cond29.thread_crit_edge
58  %f13577.ph = phi i8* [ %f13576.pre, %func_74.exit.for.cond29.thread_crit_edge ], [ %f135.pre, %lbl_468 ]
59  store i8 1, i8* %f13577.ph, align 1
60  %f135.pre = getelementptr inbounds %struct.S0, %struct.S0* undef, i64 0, i32 1
61  br i1 undef, label %lbl_468, label %for.end74
62
63for.end74:                                        ; preds = %lbl_468
64  ret void
65}
66