Skip to content

Commit df62441

Browse files
authored
[MISched][NFC] Remove unused heuristic NextDefUse from enum (#125879)
Heuristic was removed in 46533e6 due to being ineffective.
1 parent ee655ca commit df62441

File tree

2 files changed

+19
-4
lines changed

2 files changed

+19
-4
lines changed

llvm/include/llvm/CodeGen/MachineScheduler.h

Lines changed: 17 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1084,9 +1084,23 @@ class GenericSchedulerBase : public MachineSchedStrategy {
10841084
/// Represent the type of SchedCandidate found within a single queue.
10851085
/// pickNodeBidirectional depends on these listed by decreasing priority.
10861086
enum CandReason : uint8_t {
1087-
NoCand, Only1, PhysReg, RegExcess, RegCritical, Stall, Cluster, Weak,
1088-
RegMax, ResourceReduce, ResourceDemand, BotHeightReduce, BotPathReduce,
1089-
TopDepthReduce, TopPathReduce, NextDefUse, NodeOrder};
1087+
NoCand,
1088+
Only1,
1089+
PhysReg,
1090+
RegExcess,
1091+
RegCritical,
1092+
Stall,
1093+
Cluster,
1094+
Weak,
1095+
RegMax,
1096+
ResourceReduce,
1097+
ResourceDemand,
1098+
BotHeightReduce,
1099+
BotPathReduce,
1100+
TopDepthReduce,
1101+
TopPathReduce,
1102+
NodeOrder
1103+
};
10901104

10911105
#ifndef NDEBUG
10921106
static const char *getReasonStr(GenericSchedulerBase::CandReason Reason);

llvm/lib/CodeGen/MachineScheduler.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3249,6 +3249,7 @@ void GenericSchedulerBase::setPolicy(CandPolicy &Policy, bool IsPostRA,
32493249
#ifndef NDEBUG
32503250
const char *GenericSchedulerBase::getReasonStr(
32513251
GenericSchedulerBase::CandReason Reason) {
3252+
// clang-format off
32523253
switch (Reason) {
32533254
case NoCand: return "NOCAND ";
32543255
case Only1: return "ONLY1 ";
@@ -3265,9 +3266,9 @@ const char *GenericSchedulerBase::getReasonStr(
32653266
case TopPathReduce: return "TOP-PATH ";
32663267
case BotHeightReduce:return "BOT-HEIGHT";
32673268
case BotPathReduce: return "BOT-PATH ";
3268-
case NextDefUse: return "DEF-USE ";
32693269
case NodeOrder: return "ORDER ";
32703270
};
3271+
// clang-format on
32713272
llvm_unreachable("Unknown reason!");
32723273
}
32733274

0 commit comments

Comments
 (0)