Comment rewording in MachineScheduler.cpp.

Author: A Trick
llvm-svn: 285991
This commit is contained in:
Jonas Paulsson
2016-11-04 08:31:14 +00:00
parent 8a5170e02a
commit baeb402014

View File

@@ -2844,9 +2844,8 @@ void GenericScheduler::tryCandidate(SchedCandidate &Cand,
bool SameBoundary = Zone != nullptr;
if (SameBoundary) {
// For loops that are acyclic path limited, aggressively schedule for
// latency. This can result in very long dependence chains scheduled in
// sequence, so once every cycle (when CurrMOps == 0), switch to normal
// heuristics.
// latency. Within an single cycle, whenever CurrMOps > 0, allow normal
// heuristics to take precedence.
if (Rem.IsAcyclicLatencyLimited && !Zone->getCurrMOps() &&
tryLatency(TryCand, Cand, *Zone))
return;