File tree Expand file tree Collapse file tree 1 file changed +5
-7
lines changed Expand file tree Collapse file tree 1 file changed +5
-7
lines changed Original file line number Diff line number Diff line change @@ -251,14 +251,13 @@ class AMDGPUInsertDelayAlu : public MachineFunctionPass {
251
251
}
252
252
}
253
253
254
- void advanceByNum(DelayType Type, unsigned Cycles, unsigned SGPRWriteVALUNum) {
254
+ void advanceByNum(DelayType Type, unsigned Cycles,
255
+ unsigned SGPRWriteVALUNum) {
255
256
iterator Next;
256
257
for (auto I = begin(), E = end(); I != E; I = Next) {
257
258
Next = std::next(I);
258
- if (I->second.VALUNum >= SGPRWriteVALUNum && I->second.VALUCycles > 0){
259
+ if (I->second.VALUNum >= SGPRWriteVALUNum && I->second.VALUCycles > 0) {
259
260
erase(I);
260
-
261
-
262
261
}
263
262
}
264
263
}
@@ -390,7 +389,6 @@ class AMDGPUInsertDelayAlu : public MachineFunctionPass {
390
389
lastSGPRfromVALU = 0;
391
390
}
392
391
}
393
-
394
392
395
393
if (instructionWaitsForVALU(MI)) {
396
394
// Forget about all outstanding VALU delays.
@@ -409,8 +407,8 @@ class AMDGPUInsertDelayAlu : public MachineFunctionPass {
409
407
for (MCRegUnit Unit : TRI->regunits(Op.getReg())) {
410
408
auto It = State.find(Unit);
411
409
if (It != State.end()) {
412
- Delay.merge(It->second);
413
- State.erase(Unit);
410
+ Delay.merge(It->second);
411
+ State.erase(Unit);
414
412
}
415
413
}
416
414
}
You can’t perform that action at this time.
0 commit comments