| 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 105 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 116 | 116 |
| 117 // Build the (ordered) list of FakeKill instruction numbers. | 117 // Build the (ordered) list of FakeKill instruction numbers. |
| 118 Kills.clear(); | 118 Kills.clear(); |
| 119 // Phi lowering should not be creating new call instructions, so there should | 119 // Phi lowering should not be creating new call instructions, so there should |
| 120 // be no infinite-weight not-yet-colored live ranges that span a call | 120 // be no infinite-weight not-yet-colored live ranges that span a call |
| 121 // instruction, hence no need to construct the Kills list. | 121 // instruction, hence no need to construct the Kills list. |
| 122 if (Kind == RAK_Phi) | 122 if (Kind == RAK_Phi) |
| 123 return; | 123 return; |
| 124 for (CfgNode *Node : Func->getNodes()) { | 124 for (CfgNode *Node : Func->getNodes()) { |
| 125 for (Inst &I : Node->getInsts()) { | 125 for (Inst &I : Node->getInsts()) { |
| 126 if (auto Kill = llvm::dyn_cast<InstFakeKill>(&I)) { | 126 if (auto *Kill = llvm::dyn_cast<InstFakeKill>(&I)) { |
| 127 if (!Kill->isDeleted() && !Kill->getLinked()->isDeleted()) | 127 if (!Kill->isDeleted() && !Kill->getLinked()->isDeleted()) |
| 128 Kills.push_back(I.getNumber()); | 128 Kills.push_back(I.getNumber()); |
| 129 } | 129 } |
| 130 } | 130 } |
| 131 } | 131 } |
| 132 } | 132 } |
| 133 | 133 |
| 134 // Validate the integrity of the live ranges. If there are any errors, it | 134 // Validate the integrity of the live ranges. If there are any errors, it |
| 135 // prints details and returns false. On success, it returns true. | 135 // prints details and returns false. On success, it returns true. |
| 136 bool LinearScan::livenessValidateIntervals( | 136 bool LinearScan::livenessValidateIntervals( |
| (...skipping 847 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 984 Str << "\n"; | 984 Str << "\n"; |
| 985 } | 985 } |
| 986 Str << "++++++ Inactive:\n"; | 986 Str << "++++++ Inactive:\n"; |
| 987 for (const Variable *Item : Inactive) { | 987 for (const Variable *Item : Inactive) { |
| 988 dumpLiveRange(Item, Func); | 988 dumpLiveRange(Item, Func); |
| 989 Str << "\n"; | 989 Str << "\n"; |
| 990 } | 990 } |
| 991 } | 991 } |
| 992 | 992 |
| 993 } // end of namespace Ice | 993 } // end of namespace Ice |
| OLD | NEW |