OLD | NEW |
1 //===- subzero/src/IceRegAlloc.cpp - Linear-scan implementation -----------===// | 1 //===- subzero/src/IceRegAlloc.cpp - Linear-scan implementation -----------===// |
2 // | 2 // |
3 // The Subzero Code Generator | 3 // The Subzero Code Generator |
4 // | 4 // |
5 // This file is distributed under the University of Illinois Open Source | 5 // This file is distributed under the University of Illinois Open Source |
6 // License. See LICENSE.TXT for details. | 6 // License. See LICENSE.TXT for details. |
7 // | 7 // |
8 //===----------------------------------------------------------------------===// | 8 //===----------------------------------------------------------------------===// |
9 /// | 9 /// |
10 /// \file | 10 /// \file |
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
67 } | 67 } |
68 Str << "\n"; | 68 Str << "\n"; |
69 } | 69 } |
70 | 70 |
71 void dumpLiveRange(const Variable *Var, const Cfg *Func) { | 71 void dumpLiveRange(const Variable *Var, const Cfg *Func) { |
72 if (!BuildDefs::dump()) | 72 if (!BuildDefs::dump()) |
73 return; | 73 return; |
74 Ostream &Str = Func->getContext()->getStrDump(); | 74 Ostream &Str = Func->getContext()->getStrDump(); |
75 Str << "R="; | 75 Str << "R="; |
76 if (Var->hasRegTmp()) { | 76 if (Var->hasRegTmp()) { |
77 Str << llvm::format("%2d", Var->getRegNumTmp()); | 77 Str << llvm::format("%2d", int(Var->getRegNumTmp())); |
78 } else { | 78 } else { |
79 Str << "NA"; | 79 Str << "NA"; |
80 } | 80 } |
81 Str << " V="; | 81 Str << " V="; |
82 Var->dump(Func); | 82 Var->dump(Func); |
83 Str << " Range=" << Var->getLiveRange(); | 83 Str << " Range=" << Var->getLiveRange(); |
84 } | 84 } |
85 | 85 |
86 int32_t findMinWeightIndex( | 86 int32_t findMinWeightIndex( |
87 const SmallBitVector &RegMask, | 87 const SmallBitVector &RegMask, |
(...skipping 933 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1021 Str << "\n"; | 1021 Str << "\n"; |
1022 } | 1022 } |
1023 Str << "++++++ Inactive:\n"; | 1023 Str << "++++++ Inactive:\n"; |
1024 for (const Variable *Item : Inactive) { | 1024 for (const Variable *Item : Inactive) { |
1025 dumpLiveRange(Item, Func); | 1025 dumpLiveRange(Item, Func); |
1026 Str << "\n"; | 1026 Str << "\n"; |
1027 } | 1027 } |
1028 } | 1028 } |
1029 | 1029 |
1030 } // end of namespace Ice | 1030 } // end of namespace Ice |
OLD | NEW |