blob: 8cdc79e9d14db802dfd80ad353c101e45f0d0895 [file] [log] [blame]
Will Schmidteba49232014-12-03 18:46:30 +00001//===-- PPCScheduleP8.td - PPC P8 Scheduling Definitions ---*- tablegen -*-===//
2//
3// The LLVM Compiler Infrastructure
4//
5// This file is distributed under the University of Illinois Open Source
6// License. See LICENSE.TXT for details.
7//
8//===----------------------------------------------------------------------===//
9//
10// This file defines the itinerary class data for the POWER8 processor.
11//
12//===----------------------------------------------------------------------===//
13
14// Scheduling for the P8 involves tracking two types of resources:
15// 1. The dispatch bundle slots
16// 2. The functional unit resources
17
18// Dispatch units:
19def P8_DU1 : FuncUnit;
20def P8_DU2 : FuncUnit;
21def P8_DU3 : FuncUnit;
22def P8_DU4 : FuncUnit;
23def P8_DU5 : FuncUnit;
24def P8_DU6 : FuncUnit;
25def P8_DU7 : FuncUnit; // Only branch instructions will use DU7,DU8
26def P8_DU8 : FuncUnit;
27
28// 10 insns per cycle (2-LU, 2-LSU, 2-FXU, 2-FPU, 1-CRU, 1-BRU).
29
30def P8_LU1 : FuncUnit; // Loads or fixed-point operations 1
31def P8_LU2 : FuncUnit; // Loads or fixed-point operations 2
32
33// Load/Store pipelines can handle Stores, fixed-point loads, and simple
34// fixed-point operations.
35def P8_LSU1 : FuncUnit; // Load/Store pipeline 1
36def P8_LSU2 : FuncUnit; // Load/Store pipeline 2
37
38// Fixed Point unit
39def P8_FXU1 : FuncUnit; // FX pipeline 1
40def P8_FXU2 : FuncUnit; // FX pipeline 2
41
42// The Floating-Point Unit (FPU) and Vector Media Extension (VMX) units
43// are combined on P7 and newer into a Vector Scalar Unit (VSU).
44// The P8 Instruction latency documents still refers to the unit as the
45// FPU, so keep in mind that FPU==VSU.
46// In contrast to the P7, the VMX units on P8 are symmetric, so no need to
47// split vector integer ops or 128-bit load/store/perms to the specific units.
48def P8_FPU1 : FuncUnit; // VS pipeline 1
49def P8_FPU2 : FuncUnit; // VS pipeline 2
50
51def P8_CRU : FuncUnit; // CR unit (CR logicals and move-from-SPRs)
52def P8_BRU : FuncUnit; // BR unit
53
54def P8Itineraries : ProcessorItineraries<
55 [P8_DU1, P8_DU2, P8_DU3, P8_DU4, P8_DU5, P8_DU6, P8_DU7, P8_DU8,
56 P8_LU1, P8_LU2, P8_LSU1, P8_LSU2, P8_FXU1, P8_FXU2,
57 P8_FPU1, P8_FPU2, P8_CRU, P8_BRU], [], [
58 InstrItinData<IIC_IntSimple , [InstrStage<1, [P8_DU1, P8_DU2, P8_DU3,
59 P8_DU4, P8_DU5, P8_DU6], 0>,
60 InstrStage<1, [P8_FXU1, P8_FXU2,
61 P8_LU1, P8_LU2,
62 P8_LSU1, P8_LSU2]>],
63 [1, 1, 1]>,
64 InstrItinData<IIC_IntGeneral , [InstrStage<1, [P8_DU1, P8_DU2, P8_DU3,
65 P8_DU4, P8_DU5, P8_DU6], 0>,
66 InstrStage<1, [P8_FXU1, P8_FXU2, P8_LU1,
67 P8_LU2, P8_LSU1, P8_LSU2]>],
68 [1, 1, 1]>,
69 InstrItinData<IIC_IntCompare , [InstrStage<1, [P8_DU1, P8_DU2, P8_DU3,
70 P8_DU4, P8_DU5, P8_DU6], 0>,
71 InstrStage<1, [P8_FXU1, P8_FXU2]>],
72 [1, 1, 1]>,
73 InstrItinData<IIC_IntDivW , [InstrStage<1, [P8_DU1, P8_DU2, P8_DU3,
74 P8_DU4, P8_DU5, P8_DU6], 0>,
75 InstrStage<15, [P8_FXU1, P8_FXU2]>],
76 [15, 1, 1]>,
77 InstrItinData<IIC_IntDivD , [InstrStage<1, [P8_DU1, P8_DU2, P8_DU3,
78 P8_DU4, P8_DU5, P8_DU6], 0>,
79 InstrStage<23, [P8_FXU1, P8_FXU2]>],
80 [23, 1, 1]>,
81 InstrItinData<IIC_IntMulHW , [InstrStage<1, [P8_DU1, P8_DU2, P8_DU3,
82 P8_DU4, P8_DU5, P8_DU6], 0>,
83 InstrStage<1, [P8_FXU1, P8_FXU2]>],
84 [4, 1, 1]>,
85 InstrItinData<IIC_IntMulHWU , [InstrStage<1, [P8_DU1, P8_DU2, P8_DU3,
86 P8_DU4, P8_DU5, P8_DU6], 0>,
87 InstrStage<1, [P8_FXU1, P8_FXU2]>],
88 [4, 1, 1]>,
89 InstrItinData<IIC_IntMulLI , [InstrStage<1, [P8_DU1, P8_DU2, P8_DU3,
90 P8_DU4, P8_DU5, P8_DU6], 0>,
91 InstrStage<1, [P8_FXU1, P8_FXU2]>],
92 [4, 1, 1]>,
93 InstrItinData<IIC_IntRotate , [InstrStage<1, [P8_DU1, P8_DU2, P8_DU3,
94 P8_DU4, P8_DU5, P8_DU6], 0>,
95 InstrStage<1, [P8_FXU1, P8_FXU2]>],
96 [1, 1, 1]>,
97 InstrItinData<IIC_IntRotateD , [InstrStage<1, [P8_DU1, P8_DU2, P8_DU3,
98 P8_DU4, P8_DU5, P8_DU6], 0>,
99 InstrStage<1, [P8_FXU1, P8_FXU2]>],
100 [1, 1, 1]>,
101 InstrItinData<IIC_IntShift , [InstrStage<1, [P8_DU1, P8_DU2, P8_DU3,
102 P8_DU4, P8_DU5, P8_DU6], 0>,
103 InstrStage<1, [P8_FXU1, P8_FXU2]>],
104 [1, 1, 1]>,
105 InstrItinData<IIC_IntTrapW , [InstrStage<1, [P8_DU1, P8_DU2, P8_DU3,
106 P8_DU4, P8_DU5, P8_DU6], 0>,
107 InstrStage<1, [P8_FXU1, P8_FXU2]>],
108 [1, 1]>,
109 InstrItinData<IIC_IntTrapD , [InstrStage<1, [P8_DU1, P8_DU2, P8_DU3,
110 P8_DU4, P8_DU5, P8_DU6], 0>,
111 InstrStage<1, [P8_FXU1, P8_FXU2]>],
112 [1, 1]>,
113 InstrItinData<IIC_BrB , [InstrStage<1, [P8_DU7, P8_DU8], 0>,
114 InstrStage<1, [P8_BRU]>],
115 [3, 1, 1]>,
116 // FIXME - the Br* groups below are not branch related, so should probably
117 // be renamed.
118 // IIC_BrCR consists of the cr* instructions. (crand,crnor,creqv, etc).
119 // and should be 'First' in dispatch.
120 InstrItinData<IIC_BrCR , [InstrStage<1, [P8_DU1], 0>,
121 InstrStage<1, [P8_CRU]>],
122 [3, 1, 1]>,
123 // IIC_BrMCR consists of the mcrf instruction.
124 InstrItinData<IIC_BrMCR , [InstrStage<1, [P8_DU1, P8_DU2, P8_DU3,
125 P8_DU4, P8_DU5, P8_DU6], 0>,
126 InstrStage<1, [P8_CRU]>],
127 [3, 1, 1]>,
128 // IIC_BrMCRX consists of mcrxr (obsolete instruction) and mtcrf, which
129 // should be first in the dispatch group.
130 InstrItinData<IIC_BrMCRX , [InstrStage<1, [P8_DU1], 0>,
131 InstrStage<1, [P8_FXU1, P8_FXU2]>],
132 [3, 1, 1]>,
133 InstrItinData<IIC_BrMCRX , [InstrStage<1, [P8_DU1], 0>,
134 InstrStage<1, [P8_FXU1, P8_FXU2]>],
135 [3, 1]>,
136 InstrItinData<IIC_LdStLoad , [InstrStage<1, [P8_DU1, P8_DU2, P8_DU3,
137 P8_DU4, P8_DU5, P8_DU6], 0>,
138 InstrStage<1, [P8_LSU1, P8_LSU2,
139 P8_LU1, P8_LU2]>],
140 [2, 1, 1]>,
141 InstrItinData<IIC_LdStLoadUpd , [InstrStage<1, [P8_DU1], 0>,
142 InstrStage<1, [P8_DU2], 0>,
143 InstrStage<1, [P8_LSU1, P8_LSU2,
144 P8_LU1, P8_LU2 ], 0>,
145 InstrStage<1, [P8_FXU1, P8_FXU2]>],
146 [2, 2, 1, 1]>,
147 // Update-Indexed form loads/stores are no longer first and last in the
148 // dispatch group. They are simply cracked, so require DU1,DU2.
149 InstrItinData<IIC_LdStLoadUpdX, [InstrStage<1, [P8_DU1], 0>,
150 InstrStage<1, [P8_DU2], 0>,
151 InstrStage<1, [P8_LSU1, P8_LSU2,
152 P8_LU1, P8_LU2], 0>,
153 InstrStage<1, [P8_FXU1, P8_FXU2]>],
154 [3, 3, 1, 1]>,
155 InstrItinData<IIC_LdStLD , [InstrStage<1, [P8_DU1, P8_DU2, P8_DU3,
156 P8_DU4, P8_DU5, P8_DU6], 0>,
157 InstrStage<1, [P8_LSU1, P8_LSU2,
158 P8_LU1, P8_LU2]>],
159 [2, 1, 1]>,
160 InstrItinData<IIC_LdStLDU , [InstrStage<1, [P8_DU1], 0>,
161 InstrStage<1, [P8_DU2], 0>,
162 InstrStage<1, [P8_LSU1, P8_LSU2,
163 P8_LU1, P8_LU2], 0>,
164 InstrStage<1, [P8_FXU1, P8_FXU2]>],
165 [2, 2, 1, 1]>,
166 InstrItinData<IIC_LdStLDUX , [InstrStage<1, [P8_DU1], 0>,
167 InstrStage<1, [P8_DU2], 0>,
168 InstrStage<1, [P8_LSU1, P8_LSU2,
169 P8_LU1, P8_LU2], 0>,
170 InstrStage<1, [P8_FXU1, P8_FXU2]>],
171 [3, 3, 1, 1]>,
172 InstrItinData<IIC_LdStLFD , [InstrStage<1, [P8_DU1, P8_DU2, P8_DU3,
173 P8_DU4, P8_DU5, P8_DU6], 0>,
174 InstrStage<1, [P8_LU1, P8_LU2]>],
175 [3, 1, 1]>,
176 InstrItinData<IIC_LdStLVecX , [InstrStage<1, [P8_DU1, P8_DU2, P8_DU3,
177 P8_DU4, P8_DU5, P8_DU6], 0>,
178 InstrStage<1, [P8_LU1, P8_LU2]>],
179 [3, 1, 1]>,
180 InstrItinData<IIC_LdStLFDU , [InstrStage<1, [P8_DU1], 0>,
181 InstrStage<1, [P8_DU2], 0>,
182 InstrStage<1, [P8_LU1, P8_LU2], 0>,
183 InstrStage<1, [P8_FXU1, P8_FXU2]>],
184 [3, 3, 1, 1]>,
185 InstrItinData<IIC_LdStLFDUX , [InstrStage<1, [P8_DU1], 0>,
186 InstrStage<1, [P8_DU2], 0>,
187 InstrStage<1, [P8_LU1, P8_LU2], 0>,
188 InstrStage<1, [P8_FXU1, P8_FXU2]>],
189 [3, 3, 1, 1]>,
190 InstrItinData<IIC_LdStLHA , [InstrStage<1, [P8_DU1], 0>,
191 InstrStage<1, [P8_DU2], 0>,
192 InstrStage<1, [P8_LSU1, P8_LSU2,
193 P8_LU1, P8_LU2], 0>,
194 InstrStage<1, [P8_FXU1, P8_FXU2,
195 P8_LU1, P8_LU2]>],
196 [3, 1, 1]>,
197 InstrItinData<IIC_LdStLHAU , [InstrStage<1, [P8_DU1], 0>,
198 InstrStage<1, [P8_DU2], 0>,
199 InstrStage<1, [P8_LSU1, P8_LSU2,
200 P8_LU1, P8_LU2], 0>,
201 InstrStage<1, [P8_FXU1, P8_FXU2]>,
202 InstrStage<1, [P8_FXU1, P8_FXU2]>],
203 [4, 4, 1, 1]>,
204 // first+last in dispatch group.
205 InstrItinData<IIC_LdStLHAUX , [InstrStage<1, [P8_DU1], 0>,
206 InstrStage<1, [P8_DU2], 0>,
207 InstrStage<1, [P8_DU3], 0>,
208 InstrStage<1, [P8_DU4], 0>,
209 InstrStage<1, [P8_DU5], 0>,
210 InstrStage<1, [P8_DU6], 0>,
211 InstrStage<1, [P8_LSU1, P8_LSU2,
212 P8_LU1, P8_LU2], 0>,
213 InstrStage<1, [P8_FXU1, P8_FXU2]>,
214 InstrStage<1, [P8_FXU1, P8_FXU2]>],
215 [4, 4, 1, 1]>,
216 InstrItinData<IIC_LdStLWA , [InstrStage<1, [P8_DU1], 0>,
217 InstrStage<1, [P8_DU2], 0>,
218 InstrStage<1, [P8_LSU1, P8_LSU2,
219 P8_LU1, P8_LU2]>,
220 InstrStage<1, [P8_FXU1, P8_FXU2]>],
221 [3, 1, 1]>,
222 InstrItinData<IIC_LdStLWARX, [InstrStage<1, [P8_DU1], 0>,
223 InstrStage<1, [P8_DU2], 0>,
224 InstrStage<1, [P8_DU3], 0>,
225 InstrStage<1, [P8_DU4], 0>,
226 InstrStage<1, [P8_LSU1, P8_LSU2,
227 P8_LU1, P8_LU2]>],
228 [3, 1, 1]>,
229 // first+last
230 InstrItinData<IIC_LdStLDARX, [InstrStage<1, [P8_DU1], 0>,
231 InstrStage<1, [P8_DU2], 0>,
232 InstrStage<1, [P8_DU3], 0>,
233 InstrStage<1, [P8_DU4], 0>,
234 InstrStage<1, [P8_DU5], 0>,
235 InstrStage<1, [P8_DU6], 0>,
236 InstrStage<1, [P8_LSU1, P8_LSU2,
237 P8_LU1, P8_LU2]>],
238 [3, 1, 1]>,
239 InstrItinData<IIC_LdStLMW , [InstrStage<1, [P8_DU1, P8_DU2, P8_DU3,
240 P8_DU4, P8_DU5, P8_DU6], 0>,
241 InstrStage<1, [P8_LSU1, P8_LSU2,
242 P8_LU1, P8_LU2]>],
243 [2, 1, 1]>,
244// Stores are dual-issued from the issue queue, so may only take up one
245// dispatch slot. The instruction will be broken into two IOPS. The agen
246// op is issued to the LSU, and the data op (register fetch) is issued
247// to either the LU (GPR store) or the VSU (FPR store).
248 InstrItinData<IIC_LdStStore , [InstrStage<1, [P8_DU1, P8_DU2, P8_DU3,
249 P8_DU4, P8_DU5, P8_DU6], 0>,
250 InstrStage<1, [P8_LSU1, P8_LSU2]>,
251 InstrStage<1, [P8_LU1, P8_LU2]>],
252 [1, 1, 1]>,
253 InstrItinData<IIC_LdStSTD , [InstrStage<1, [P8_DU1, P8_DU2, P8_DU3,
254 P8_DU4, P8_DU5, P8_DU6], 0>,
255 InstrStage<1, [P8_LU1, P8_LU2,
256 P8_LSU1, P8_LSU2]>]
257 [1, 1, 1]>,
258 InstrItinData<IIC_LdStSTDU , [InstrStage<1, [P8_DU1], 0>,
259 InstrStage<1, [P8_DU2], 0>,
260 InstrStage<1, [P8_LU1, P8_LU2,
261 P8_LSU1, P8_LSU2], 0>,
262 InstrStage<1, [P8_FXU1, P8_FXU2]>],
263 [2, 1, 1, 1]>,
264 // First+last
265 InstrItinData<IIC_LdStSTDUX , [InstrStage<1, [P8_DU1], 0>,
266 InstrStage<1, [P8_DU2], 0>,
267 InstrStage<1, [P8_DU3], 0>,
268 InstrStage<1, [P8_DU4], 0>,
269 InstrStage<1, [P8_DU5], 0>,
270 InstrStage<1, [P8_DU6], 0>,
271 InstrStage<1, [P8_LSU1, P8_LSU2], 0>,
272 InstrStage<1, [P8_FXU1, P8_FXU2]>,
273 InstrStage<1, [P8_FXU1, P8_FXU2]>],
274 [2, 1, 1, 1]>,
275 InstrItinData<IIC_LdStSTFD , [InstrStage<1, [P8_DU1, P8_DU2, P8_DU3,
276 P8_DU4, P8_DU5, P8_DU6], 0>,
277 InstrStage<1, [P8_LSU1, P8_LSU2], 0>,
278 InstrStage<1, [P8_FPU1, P8_FPU2]>],
279 [1, 1, 1]>,
280 InstrItinData<IIC_LdStSTFDU , [InstrStage<1, [P8_DU1], 0>,
281 InstrStage<1, [P8_DU2], 0>,
282 InstrStage<1, [P8_LSU1, P8_LSU2], 0>,
283 InstrStage<1, [P8_FXU1, P8_FXU2], 0>,
284 InstrStage<1, [P8_FPU1, P8_FPU2]>],
285 [2, 1, 1, 1]>,
286 InstrItinData<IIC_LdStSTVEBX , [InstrStage<1, [P8_DU1, P8_DU2, P8_DU3,
287 P8_DU4, P8_DU5, P8_DU6], 0>,
288 InstrStage<1, [P8_LSU1, P8_LSU2], 0>,
289 InstrStage<1, [P8_FPU1, P8_FPU2]>],
290 [1, 1, 1]>,
291 InstrItinData<IIC_LdStSTDCX , [InstrStage<1, [P8_DU1], 0>,
292 InstrStage<1, [P8_DU2], 0>,
293 InstrStage<1, [P8_DU3], 0>,
294 InstrStage<1, [P8_DU4], 0>,
295 InstrStage<1, [P8_DU5], 0>,
296 InstrStage<1, [P8_DU6], 0>,
297 InstrStage<1, [P8_LSU1, P8_LSU2], 0>,
298 InstrStage<1, [P8_LU1, P8_LU2]>],
299 [1, 1, 1]>,
300 InstrItinData<IIC_LdStSTWCX , [InstrStage<1, [P8_DU1], 0>,
301 InstrStage<1, [P8_DU2], 0>,
302 InstrStage<1, [P8_DU3], 0>,
303 InstrStage<1, [P8_DU4], 0>,
304 InstrStage<1, [P8_DU5], 0>,
305 InstrStage<1, [P8_DU6], 0>,
306 InstrStage<1, [P8_LSU1, P8_LSU2], 0>,
307 InstrStage<1, [P8_LU1, P8_LU2]>],
308 [1, 1, 1]>,
309 InstrItinData<IIC_SprMFCR , [InstrStage<1, [P8_DU1], 0>,
310 InstrStage<1, [P8_CRU]>],
311 [6, 1]>,
312 InstrItinData<IIC_SprMFCRF , [InstrStage<1, [P8_DU1], 0>,
313 InstrStage<1, [P8_CRU]>],
314 [3, 1]>,
315 InstrItinData<IIC_SprMTSPR , [InstrStage<1, [P8_DU1], 0>,
316 InstrStage<1, [P8_FXU1, P8_FXU2]>],
317 [4, 1]>, // mtctr
318 InstrItinData<IIC_FPGeneral , [InstrStage<1, [P8_DU1, P8_DU2, P8_DU3,
319 P8_DU4, P8_DU5, P8_DU6], 0>,
320 InstrStage<1, [P8_FPU1, P8_FPU2]>],
321 [5, 1, 1]>,
322 InstrItinData<IIC_FPCompare , [InstrStage<1, [P8_DU1, P8_DU2, P8_DU3,
323 P8_DU4, P8_DU5, P8_DU6], 0>,
324 InstrStage<1, [P8_FPU1, P8_FPU2]>],
325 [8, 1, 1]>,
326 InstrItinData<IIC_FPDivD , [InstrStage<1, [P8_DU1, P8_DU2, P8_DU3,
327 P8_DU4, P8_DU5, P8_DU6], 0>,
328 InstrStage<1, [P8_FPU1, P8_FPU2]>],
329 [33, 1, 1]>,
330 InstrItinData<IIC_FPDivS , [InstrStage<1, [P8_DU1, P8_DU2, P8_DU3,
331 P8_DU4, P8_DU5, P8_DU6], 0>,
332 InstrStage<1, [P8_FPU1, P8_FPU2]>],
333 [27, 1, 1]>,
334 InstrItinData<IIC_FPSqrtD , [InstrStage<1, [P8_DU1, P8_DU2, P8_DU3,
335 P8_DU4, P8_DU5, P8_DU6], 0>,
336 InstrStage<1, [P8_FPU1, P8_FPU2]>],
337 [44, 1, 1]>,
338 InstrItinData<IIC_FPSqrtS , [InstrStage<1, [P8_DU1, P8_DU2, P8_DU3,
339 P8_DU4, P8_DU5, P8_DU6], 0>,
340 InstrStage<1, [P8_FPU1, P8_FPU2]>],
341 [32, 1, 1]>,
342 InstrItinData<IIC_FPFused , [InstrStage<1, [P8_DU1, P8_DU2, P8_DU3,
343 P8_DU4, P8_DU5, P8_DU6], 0>,
344 InstrStage<1, [P8_FPU1, P8_FPU2]>],
345 [5, 1, 1, 1]>,
346 InstrItinData<IIC_FPRes , [InstrStage<1, [P8_DU1, P8_DU2, P8_DU3,
347 P8_DU4, P8_DU5, P8_DU6], 0>,
348 InstrStage<1, [P8_FPU1, P8_FPU2]>],
349 [5, 1, 1]>,
350 InstrItinData<IIC_VecGeneral , [InstrStage<1, [P8_DU1], 0>,
351 InstrStage<1, [P8_FPU1, P8_FPU2]>],
352 [2, 1, 1]>,
353 InstrItinData<IIC_VecVSL , [InstrStage<1, [P8_DU1], 0>,
354 InstrStage<1, [P8_FPU1, P8_FPU2]>],
355 [2, 1, 1]>,
356 InstrItinData<IIC_VecVSR , [InstrStage<1, [P8_DU1], 0>,
357 InstrStage<1, [P8_FPU1, P8_FPU2]>],
358 [2, 1, 1]>,
359 InstrItinData<IIC_VecFP , [InstrStage<1, [P8_DU1], 0>,
360 InstrStage<1, [P8_FPU1, P8_FPU2]>],
361 [6, 1, 1]>,
362 InstrItinData<IIC_VecFPCompare, [InstrStage<1, [P8_DU1], 0>,
363 InstrStage<1, [P8_FPU1, P8_FPU2]>],
364 [6, 1, 1]>,
365 InstrItinData<IIC_VecFPRound , [InstrStage<1, [P8_DU1], 0>,
366 InstrStage<1, [P8_FPU1, P8_FPU2]>],
367 [6, 1, 1]>,
368 InstrItinData<IIC_VecComplex , [InstrStage<1, [P8_DU1], 0>,
369 InstrStage<1, [P8_FPU1, P8_FPU2]>],
370 [7, 1, 1]>,
371 InstrItinData<IIC_VecPerm , [InstrStage<1, [P8_DU1, P8_DU2], 0>,
372 InstrStage<1, [P8_FPU2, P8_FPU2]>],
373 [3, 1, 1]>
374]>;
375
376// ===---------------------------------------------------------------------===//
377// P8 machine model for scheduling and other instruction cost heuristics.
378// P8 has an 8 insn dispatch group (6 non-branch, 2 branch) and can issue up
379// to 10 insns per cycle (2-LU, 2-LSU, 2-FXU, 2-FPU, 1-CRU, 1-BRU).
380
381def P8Model : SchedMachineModel {
382 let IssueWidth = 8; // up to 8 instructions dispatched per cycle.
383 // up to six non-branch instructions.
384 // up to two branches in a dispatch group.
385
386 let MinLatency = 0; // Out-of-order dispatch.
387 let LoadLatency = 3; // Optimistic load latency assuming bypass.
388 // This is overriden by OperandCycles if the
389 // Itineraries are queried instead.
390 let MispredictPenalty = 16;
391
Hal Finkelb359b732015-01-09 15:51:16 +0000392 // Try to make sure we have at least 10-11 dispatch groups in a loop.
393 let LoopMicroOpBufferSize = 66;
394
Will Schmidteba49232014-12-03 18:46:30 +0000395 let Itineraries = P8Itineraries;
396}
397