diff options
Diffstat (limited to 'lib/CodeGen/ScheduleDAGPrinter.cpp')
| -rw-r--r-- | lib/CodeGen/ScheduleDAGPrinter.cpp | 16 | 
1 files changed, 10 insertions, 6 deletions
| diff --git a/lib/CodeGen/ScheduleDAGPrinter.cpp b/lib/CodeGen/ScheduleDAGPrinter.cpp index 6e781b199a5f..8ddb3e892f25 100644 --- a/lib/CodeGen/ScheduleDAGPrinter.cpp +++ b/lib/CodeGen/ScheduleDAGPrinter.cpp @@ -11,19 +11,19 @@  //  //===----------------------------------------------------------------------===// -#include "llvm/Constants.h" -#include "llvm/Assembly/Writer.h"  #include "llvm/CodeGen/ScheduleDAG.h" +#include "llvm/ADT/DenseSet.h" +#include "llvm/ADT/StringExtras.h" +#include "llvm/Assembly/Writer.h"  #include "llvm/CodeGen/MachineConstantPool.h"  #include "llvm/CodeGen/MachineFunction.h"  #include "llvm/CodeGen/MachineModuleInfo.h" -#include "llvm/Target/TargetRegisterInfo.h" -#include "llvm/Target/TargetMachine.h" +#include "llvm/IR/Constants.h"  #include "llvm/Support/Debug.h"  #include "llvm/Support/GraphWriter.h"  #include "llvm/Support/raw_ostream.h" -#include "llvm/ADT/DenseSet.h" -#include "llvm/ADT/StringExtras.h" +#include "llvm/Target/TargetMachine.h" +#include "llvm/Target/TargetRegisterInfo.h"  #include <fstream>  using namespace llvm; @@ -41,6 +41,10 @@ namespace llvm {        return true;      } +    static bool isNodeHidden(const SUnit *Node) { +      return (Node->NumPreds > 10 || Node->NumSuccs > 10); +    } +      static bool hasNodeAddressLabel(const SUnit *Node,                                      const ScheduleDAG *Graph) {        return true; | 
