From: Dan Gohman Date: Mon, 14 Apr 2008 23:15:07 +0000 (+0000) Subject: In -view-sunit-dags, display "special" chain dependencies as cyan X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=89bf0a6b05c8c353890c88ed1c10dec96a9a7bd8;p=oota-llvm.git In -view-sunit-dags, display "special" chain dependencies as cyan instead of blue to distinguish them from regular dependencies. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@49696 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/include/llvm/CodeGen/ScheduleDAG.h b/include/llvm/CodeGen/ScheduleDAG.h index 12e6c499b7c..ebc21a164ba 100644 --- a/include/llvm/CodeGen/ScheduleDAG.h +++ b/include/llvm/CodeGen/ScheduleDAG.h @@ -456,6 +456,7 @@ namespace llvm { unsigned getOperand() const { return Operand; } const SUnit *getNode() const { return Node; } bool isCtrlDep() const { return Node->Preds[Operand].isCtrl; } + bool isSpecialDep() const { return Node->Preds[Operand].isSpecial; } }; template <> struct GraphTraits { diff --git a/lib/CodeGen/SelectionDAG/SelectionDAGPrinter.cpp b/lib/CodeGen/SelectionDAG/SelectionDAGPrinter.cpp index 7779acce634..b07b86eb949 100644 --- a/lib/CodeGen/SelectionDAG/SelectionDAGPrinter.cpp +++ b/lib/CodeGen/SelectionDAG/SelectionDAGPrinter.cpp @@ -283,6 +283,8 @@ namespace llvm { /// edge, override this method. template static std::string getEdgeAttributes(const void *Node, EdgeIter EI) { + if (EI.isSpecialDep()) + return "color=cyan,style=dashed"; if (EI.isCtrlDep()) return "color=blue,style=dashed"; return "";