Skip to content

Commit 59fa833

Browse files
committed
clang format
1 parent 07b2542 commit 59fa833

File tree

1 file changed

+5
-7
lines changed

1 file changed

+5
-7
lines changed

llvm/lib/Target/AMDGPU/AMDGPUInsertDelayAlu.cpp

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -251,14 +251,13 @@ class AMDGPUInsertDelayAlu : public MachineFunctionPass {
251251
}
252252
}
253253

254-
void advanceByNum(DelayType Type, unsigned Cycles, unsigned SGPRWriteVALUNum) {
254+
void advanceByNum(DelayType Type, unsigned Cycles,
255+
unsigned SGPRWriteVALUNum) {
255256
iterator Next;
256257
for (auto I = begin(), E = end(); I != E; I = Next) {
257258
Next = std::next(I);
258-
if (I->second.VALUNum >= SGPRWriteVALUNum && I->second.VALUCycles > 0){
259+
if (I->second.VALUNum >= SGPRWriteVALUNum && I->second.VALUCycles > 0) {
259260
erase(I);
260-
261-
262261
}
263262
}
264263
}
@@ -390,7 +389,6 @@ class AMDGPUInsertDelayAlu : public MachineFunctionPass {
390389
lastSGPRfromVALU = 0;
391390
}
392391
}
393-
394392

395393
if (instructionWaitsForVALU(MI)) {
396394
// Forget about all outstanding VALU delays.
@@ -409,8 +407,8 @@ class AMDGPUInsertDelayAlu : public MachineFunctionPass {
409407
for (MCRegUnit Unit : TRI->regunits(Op.getReg())) {
410408
auto It = State.find(Unit);
411409
if (It != State.end()) {
412-
Delay.merge(It->second);
413-
State.erase(Unit);
410+
Delay.merge(It->second);
411+
State.erase(Unit);
414412
}
415413
}
416414
}

0 commit comments

Comments
 (0)