aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/CodeGen/MachineScheduler.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'llvm/lib/CodeGen/MachineScheduler.cpp')
-rw-r--r--llvm/lib/CodeGen/MachineScheduler.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/llvm/lib/CodeGen/MachineScheduler.cpp b/llvm/lib/CodeGen/MachineScheduler.cpp
index 0da7535..bd7eeca 100644
--- a/llvm/lib/CodeGen/MachineScheduler.cpp
+++ b/llvm/lib/CodeGen/MachineScheduler.cpp
@@ -3267,6 +3267,7 @@ const char *GenericSchedulerBase::getReasonStr(
case BotHeightReduce:return "BOT-HEIGHT";
case BotPathReduce: return "BOT-PATH ";
case NodeOrder: return "ORDER ";
+ case FirstValid: return "FIRST ";
};
// clang-format on
llvm_unreachable("Unknown reason!");
@@ -3688,7 +3689,7 @@ bool GenericScheduler::tryCandidate(SchedCandidate &Cand,
SchedBoundary *Zone) const {
// Initialize the candidate if needed.
if (!Cand.isValid()) {
- TryCand.Reason = NodeOrder;
+ TryCand.Reason = FirstValid;
return true;
}
@@ -4103,7 +4104,7 @@ bool PostGenericScheduler::tryCandidate(SchedCandidate &Cand,
SchedCandidate &TryCand) {
// Initialize the candidate if needed.
if (!Cand.isValid()) {
- TryCand.Reason = NodeOrder;
+ TryCand.Reason = FirstValid;
return true;
}