[PATCH] D78432: Add a policy to enable computing SchedDFSResult.
Mark Lacey via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed Apr 22 16:53:19 PDT 2020
This revision was automatically updated to reflect the committed changes.
Closed by commit rG328bb446ddd2: Add a policy to enable computing SchedDFSResult. (authored by rudkx).
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D78432/new/
https://reviews.llvm.org/D78432
Files:
llvm/include/llvm/CodeGen/MachineScheduler.h
llvm/lib/CodeGen/MachineScheduler.cpp
Index: llvm/lib/CodeGen/MachineScheduler.cpp
===================================================================
--- llvm/lib/CodeGen/MachineScheduler.cpp
+++ llvm/lib/CodeGen/MachineScheduler.cpp
@@ -2733,6 +2733,9 @@
SchedModel = DAG->getSchedModel();
TRI = DAG->TRI;
+ if (RegionPolicy.ComputeDFSResult)
+ DAG->computeDFSResult();
+
Rem.init(DAG, SchedModel);
Top.init(DAG, SchedModel, &Rem);
Bot.init(DAG, SchedModel, &Rem);
Index: llvm/include/llvm/CodeGen/MachineScheduler.h
===================================================================
--- llvm/include/llvm/CodeGen/MachineScheduler.h
+++ llvm/include/llvm/CodeGen/MachineScheduler.h
@@ -186,6 +186,9 @@
// first.
bool DisableLatencyHeuristic = false;
+ // Compute DFSResult for use in scheduling heuristics.
+ bool ComputeDFSResult = false;
+
MachineSchedPolicy() = default;
};
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D78432.259428.patch
Type: text/x-patch
Size: 879 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200422/5a7531ef/attachment.bin>
More information about the llvm-commits
mailing list