We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 130e93c commit 7370b10Copy full SHA for 7370b10
llvm/lib/CodeGen/ScheduleDAG.cpp
@@ -331,10 +331,8 @@ void SUnit::biasCriticalPath() {
331
unsigned MaxDepth = BestI->getSUnit()->getDepth();
332
for (SUnit::pred_iterator I = std::next(BestI), E = Preds.end(); I != E;
333
++I) {
334
- if (I->getKind() == SDep::Data && I->getSUnit()->getDepth() > MaxDepth) {
335
- MaxDepth = I->getSUnit()->getDepth();
+ if (I->getKind() == SDep::Data && I->getSUnit()->getDepth() > MaxDepth)
336
BestI = I;
337
- }
338
}
339
if (BestI != Preds.begin())
340
std::swap(*Preds.begin(), *BestI);
llvm/test/CodeGen/X86/misched-critical-path.ll
0 commit comments