1; RUN: opt < %s -basicaa -slp-vectorizer -dce -S -mtriple=x86_64-apple-macosx10.8.0 -mcpu=corei7
2
3target datalayout = "e-p:64:64:64-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:64:64-f32:32:32-f64:64:64-v64:64:64-v128:128:128-a0:0:64-s0:64:64-f80:128:128-n8:16:32:64-S128"
4target triple = "x86_64-apple-macosx10.8.0"
5
6; Function Attrs: nounwind ssp uwtable
7define void @RCModelEstimator() {
8entry:
9  br i1 undef, label %for.body.lr.ph, label %for.end.thread
10
11for.end.thread:                                   ; preds = %entry
12  unreachable
13
14for.body.lr.ph:                                   ; preds = %entry
15  br i1 undef, label %for.end, label %for.body
16
17for.body:                                         ; preds = %for.body, %for.body.lr.ph
18  br i1 undef, label %for.end, label %for.body
19
20for.end:                                          ; preds = %for.body, %for.body.lr.ph
21  br i1 undef, label %for.body3, label %if.end103
22
23for.cond14.preheader:                             ; preds = %for.inc11
24  br i1 undef, label %for.body16.lr.ph, label %if.end103
25
26for.body16.lr.ph:                                 ; preds = %for.cond14.preheader
27  br label %for.body16
28
29for.body3:                                        ; preds = %for.inc11, %for.end
30  br i1 undef, label %if.then7, label %for.inc11
31
32if.then7:                                         ; preds = %for.body3
33  br label %for.inc11
34
35for.inc11:                                        ; preds = %if.then7, %for.body3
36  br i1 false, label %for.cond14.preheader, label %for.body3
37
38for.body16:                                       ; preds = %for.body16, %for.body16.lr.ph
39  br i1 undef, label %for.end39, label %for.body16
40
41for.end39:                                        ; preds = %for.body16
42  br i1 undef, label %if.end103, label %for.cond45.preheader
43
44for.cond45.preheader:                             ; preds = %for.end39
45  br i1 undef, label %if.then88, label %if.else
46
47if.then88:                                        ; preds = %for.cond45.preheader
48  %mul89 = fmul double 0.000000e+00, 0.000000e+00
49  %mul90 = fmul double 0.000000e+00, 0.000000e+00
50  %sub91 = fsub double %mul89, %mul90
51  %div92 = fdiv double %sub91, undef
52  %mul94 = fmul double 0.000000e+00, 0.000000e+00
53  %mul95 = fmul double 0.000000e+00, 0.000000e+00
54  %sub96 = fsub double %mul94, %mul95
55  %div97 = fdiv double %sub96, undef
56  br label %if.end103
57
58if.else:                                          ; preds = %for.cond45.preheader
59  br label %if.end103
60
61if.end103:                                        ; preds = %if.else, %if.then88, %for.end39, %for.cond14.preheader, %for.end
62  %0 = phi double [ 0.000000e+00, %for.end39 ], [ %div97, %if.then88 ], [ 0.000000e+00, %if.else ], [ 0.000000e+00, %for.cond14.preheader ], [ 0.000000e+00, %for.end ]
63  %1 = phi double [ undef, %for.end39 ], [ %div92, %if.then88 ], [ undef, %if.else ], [ 0.000000e+00, %for.cond14.preheader ], [ 0.000000e+00, %for.end ]
64  ret void
65}
66
67
68define void @intrapred_luma() {
69entry:
70  %conv153 = trunc i32 undef to i16
71  %arrayidx154 = getelementptr inbounds [13 x i16], [13 x i16]* undef, i64 0, i64 12
72  store i16 %conv153, i16* %arrayidx154, align 8
73  %arrayidx155 = getelementptr inbounds [13 x i16], [13 x i16]* undef, i64 0, i64 11
74  store i16 %conv153, i16* %arrayidx155, align 2
75  %arrayidx156 = getelementptr inbounds [13 x i16], [13 x i16]* undef, i64 0, i64 10
76  store i16 %conv153, i16* %arrayidx156, align 4
77  ret void
78}
79
80define fastcc void @dct36(double* %inbuf) {
81entry:
82  %arrayidx41 = getelementptr inbounds double, double* %inbuf, i64 2
83  %arrayidx44 = getelementptr inbounds double, double* %inbuf, i64 1
84  %0 = load double, double* %arrayidx44, align 8
85  %add46 = fadd double %0, undef
86  store double %add46, double* %arrayidx41, align 8
87  %1 = load double, double* %inbuf, align 8
88  %add49 = fadd double %1, %0
89  store double %add49, double* %arrayidx44, align 8
90  ret void
91}
92