llvm.org GIT mirror llvm / f13fc1b
MI Sched: revert a minor heuristic that snuck in with -misched-vcopy. I'll fix the heuristic in a general way in a follow-up commit. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@180815 91177308-0d34-0410-b5e6-96231b3b80d8 Andrew Trick 7 years ago
1 changed file(s) with 6 addition(s) and 0 deletion(s). Raw diff Collapse all Expand all
19891989 return;
19901990
19911991 // Weak edges are for clustering and other constraints.
1992 //
1993 // Deferring TryCand here does not change Cand's reason. This is good in the
1994 // sense that a bad candidate shouldn't affect a previous candidate's
1995 // goodness, but bad in that it is assymetric and depends on queue order.
1996 CandReason OrigReason = Cand.Reason;
19921997 if (tryLess(getWeakLeft(TryCand.SU, Zone.isTop()),
19931998 getWeakLeft(Cand.SU, Zone.isTop()),
19941999 TryCand, Cand, Weak)) {
2000 Cand.Reason = OrigReason;
19952001 return;
19962002 }
19972003 // Avoid critical resource consumption and balance the schedule.