aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/CodeGen/MachineScheduler.cpp
diff options
context:
space:
mode:
authorBardia Mahjour <bmahjour@ca.ibm.com>2020-12-14 16:34:48 -0500
committerBardia Mahjour <bmahjour@ca.ibm.com>2020-12-14 16:41:14 -0500
commitfd4a10732c8bd646ccc621c0a9af512be252f33a (patch)
tree30dde9f4c15dbb8dde6df434550369c0df646c7d /llvm/lib/CodeGen/MachineScheduler.cpp
parentaece4e2793ccf0d63d5e677a0ace83752b30979a (diff)
downloadllvm-fd4a10732c8bd646ccc621c0a9af512be252f33a.zip
llvm-fd4a10732c8bd646ccc621c0a9af512be252f33a.tar.gz
llvm-fd4a10732c8bd646ccc621c0a9af512be252f33a.tar.bz2
[DDG] Data Dependence Graph - DOT printer
This patch implements a DDG printer pass that generates a graph in the DOT description language, providing a more visually appealing representation of the DDG. Similar to the CFG DOT printer, this functionality is provided under an option called -dot-ddg and can be generated in a less verbose mode under -dot-ddg-only option. Differential Revision: https://reviews.llvm.org/D90159
Diffstat (limited to 'llvm/lib/CodeGen/MachineScheduler.cpp')
-rw-r--r--llvm/lib/CodeGen/MachineScheduler.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/MachineScheduler.cpp b/llvm/lib/CodeGen/MachineScheduler.cpp
index 5843f84..8d51bb2 100644
--- a/llvm/lib/CodeGen/MachineScheduler.cpp
+++ b/llvm/lib/CodeGen/MachineScheduler.cpp
@@ -3836,7 +3836,7 @@ struct DOTGraphTraits<ScheduleDAGMI*> : public DefaultDOTGraphTraits {
return true;
}
- static bool isNodeHidden(const SUnit *Node) {
+ static bool isNodeHidden(const SUnit *Node, const ScheduleDAG *G) {
if (ViewMISchedCutoff == 0)
return false;
return (Node->Preds.size() > ViewMISchedCutoff