Skip to content

Commit 7370b10

Browse files
authored
Revert "[llvm][ScheduleDAG] SUnit::biasCriticalPath() does not find the critical path consistently (#92368)" (#92992)
This reverts commit f0d1ae8. This commit breaks tests: http://45.33.8.238/linux/138572/step_11.txt
1 parent 130e93c commit 7370b10

File tree

2 files changed

+1
-243
lines changed

2 files changed

+1
-243
lines changed

llvm/lib/CodeGen/ScheduleDAG.cpp

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -331,10 +331,8 @@ void SUnit::biasCriticalPath() {
331331
unsigned MaxDepth = BestI->getSUnit()->getDepth();
332332
for (SUnit::pred_iterator I = std::next(BestI), E = Preds.end(); I != E;
333333
++I) {
334-
if (I->getKind() == SDep::Data && I->getSUnit()->getDepth() > MaxDepth) {
335-
MaxDepth = I->getSUnit()->getDepth();
334+
if (I->getKind() == SDep::Data && I->getSUnit()->getDepth() > MaxDepth)
336335
BestI = I;
337-
}
338336
}
339337
if (BestI != Preds.begin())
340338
std::swap(*Preds.begin(), *BestI);

llvm/test/CodeGen/X86/misched-critical-path.ll

Lines changed: 0 additions & 240 deletions
This file was deleted.

0 commit comments

Comments
 (0)