aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/CodeGen/MachineScheduler.cpp
diff options
context:
space:
mode:
authorJonas Paulsson <paulsson@linux.vnet.ibm.com>2016-11-04 08:31:14 +0000
committerJonas Paulsson <paulsson@linux.vnet.ibm.com>2016-11-04 08:31:14 +0000
commitbaeb40201476656d2478ae1af284cb8b17d1296c (patch)
treea4574a76b48c6e6e63f0f32889e82ad2681889eb /llvm/lib/CodeGen/MachineScheduler.cpp
parent8a5170e02a415ed85cf60daf8434308526d14f61 (diff)
downloadllvm-baeb40201476656d2478ae1af284cb8b17d1296c.zip
llvm-baeb40201476656d2478ae1af284cb8b17d1296c.tar.gz
llvm-baeb40201476656d2478ae1af284cb8b17d1296c.tar.bz2
Comment rewording in MachineScheduler.cpp.
Author: A Trick llvm-svn: 285991
Diffstat (limited to 'llvm/lib/CodeGen/MachineScheduler.cpp')
-rw-r--r--llvm/lib/CodeGen/MachineScheduler.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/llvm/lib/CodeGen/MachineScheduler.cpp b/llvm/lib/CodeGen/MachineScheduler.cpp
index a43277c..7946ca7 100644
--- a/llvm/lib/CodeGen/MachineScheduler.cpp
+++ b/llvm/lib/CodeGen/MachineScheduler.cpp
@@ -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;