Blame view

deroulement_boucle.c.117t.cunroll 3.15 KB
42a7f240   Pierre Cwik   optimisation 19 mai
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
  
  ;; Function main (main, funcdef_no=11, decl_uid=2235, symbol_order=12) (executed once)
  
  main ()
  {
    int vect_resultat_28.9;
    vector(4) int vect_resultat_28.8;
    int stmp_resultat_28.7;
    vector(4) int vect_resultat_28.6;
    vector(4) int vect__27.5;
    vector(4) int * vectp_a.4;
    vector(4) int * vectp_a.3;
    int u;
    int e;
    int i;
    int resultat;
    unsigned int ivtmp_1;
    unsigned int ivtmp_2;
    unsigned int ivtmp_3;
    unsigned int ivtmp_4;
    unsigned int ivtmp_5;
    unsigned int ivtmp_6;
    unsigned int ivtmp_7;
    unsigned int ivtmp_8;
    unsigned int ivtmp_9;
    int _19;
    unsigned int ivtmp_25;
    unsigned int ivtmp_32;
    sizetype _40;
    sizetype _42;
    sizetype _44;
    sizetype _45;
    sizetype _47;
    unsigned int ivtmp_59;
  
    <bb 2>:
    goto <bb 11>;
  
    <bb 3>:
  
    <bb 4>:
    # u_54 = PHI <u_21(3), 0(7)>
    # ivtmp_9 = PHI <ivtmp_7(3), 500(7)>
    _19 = rand ();
    a[i_26][e_52][u_54] = _19;
    u_21 = u_54 + 1;
    ivtmp_7 = ivtmp_9 - 1;
    if (ivtmp_7 != 0)
      goto <bb 3>;
    else
      goto <bb 5>;
  
    <bb 5>:
    e_22 = e_52 + 1;
    ivtmp_3 = ivtmp_4 - 1;
    if (ivtmp_3 != 0)
      goto <bb 6>;
    else
      goto <bb 8>;
  
    <bb 6>:
  
    <bb 7>:
    # e_52 = PHI <e_22(6), 0(11)>
    # ivtmp_4 = PHI <ivtmp_3(6), 500(11)>
    goto <bb 4>;
  
    <bb 8>:
    i_23 = i_26 + 1;
    ivtmp_1 = ivtmp_2 - 1;
    if (ivtmp_1 != 0)
      goto <bb 10>;
    else
      goto <bb 9>;
  
    <bb 9>:
    goto <bb 19>;
  
    <bb 10>:
  
    <bb 11>:
    # i_26 = PHI <i_23(10), 0(2)>
    # ivtmp_2 = PHI <ivtmp_1(10), 100(2)>
    goto <bb 7>;
  
    <bb 12>:
  
    <bb 13>:
    # vectp_a.3_49 = PHI <vectp_a.3_50(12), vectp_a.4_39(16)>
    # vect_resultat_28.6_46 = PHI <vect_resultat_28.6_12(12), { 0, 0, 0, 0 }(16)>
    # ivtmp_25 = PHI <ivtmp_59(12), 0(16)>
    vect__27.5_48 = MEM[(int *)vectp_a.3_49];
    vect_resultat_28.6_12 = vect__27.5_48 + vect_resultat_28.6_46;
    vectp_a.3_50 = vectp_a.3_49 + 16;
    ivtmp_59 = ivtmp_25 + 1;
    if (ivtmp_59 < 125)
      goto <bb 12>;
    else
      goto <bb 14>;
  
    <bb 14>:
    # vect_resultat_28.6_11 = PHI <vect_resultat_28.6_12(13)>
    vect_resultat_28.8_10 = vect_resultat_28.6_11 v>> 64;
    vect_resultat_28.8_17 = vect_resultat_28.8_10 + vect_resultat_28.6_11;
    vect_resultat_28.8_14 = vect_resultat_28.8_17 v>> 32;
    vect_resultat_28.8_24 = vect_resultat_28.8_14 + vect_resultat_28.8_17;
    stmp_resultat_28.7_16 = BIT_FIELD_REF <vect_resultat_28.8_24, 32, 0>;
    vect_resultat_28.9_33 = stmp_resultat_28.7_16 + resultat_34;
    e_30 = e_53 + 1;
    ivtmp_8 = ivtmp_32 - 1;
    if (ivtmp_8 != 0)
      goto <bb 15>;
    else
      goto <bb 17>;
  
    <bb 15>:
  
    <bb 16>:
    # resultat_34 = PHI <vect_resultat_28.9_33(15), resultat_35(19)>
    # e_53 = PHI <e_30(15), 0(19)>
    # ivtmp_32 = PHI <ivtmp_8(15), 500(19)>
    _44 = (sizetype) i_51;
    _42 = _44 * 1000000;
    _40 = (sizetype) e_53;
    _47 = _40 * 2000;
    _45 = _42 + _47;
    vectp_a.4_39 = &a + _45;
    goto <bb 13>;
  
    <bb 17>:
    # resultat_41 = PHI <vect_resultat_28.9_33(14)>
    i_31 = i_51 + 1;
    ivtmp_5 = ivtmp_6 - 1;
    if (ivtmp_5 != 0)
      goto <bb 18>;
    else
      goto <bb 20>;
  
    <bb 18>:
  
    <bb 19>:
    # resultat_35 = PHI <resultat_41(18), 0(9)>
    # i_51 = PHI <i_31(18), 0(9)>
    # ivtmp_6 = PHI <ivtmp_5(18), 100(9)>
    goto <bb 16>;
  
    <bb 20>:
    # resultat_37 = PHI <resultat_41(17)>
    return resultat_37;
  
  }