OLD | NEW |
1 //===- subzero/src/IceRegAlloc.h - Linear-scan reg. allocation --*- C++ -*-===// | 1 //===- subzero/src/IceRegAlloc.h - Linear-scan reg. allocation --*- C++ -*-===// |
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 // This file declares the data structures used during linear-scan | 10 // This file declares the data structures used during linear-scan |
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
64 InstNumberT Lstart = L.Var->getLiveRange().getStart(); | 64 InstNumberT Lstart = L.Var->getLiveRange().getStart(); |
65 InstNumberT Rstart = R.Var->getLiveRange().getStart(); | 65 InstNumberT Rstart = R.Var->getLiveRange().getStart(); |
66 if (Lstart == Rstart) | 66 if (Lstart == Rstart) |
67 return L.Var->getIndex() < R.Var->getIndex(); | 67 return L.Var->getIndex() < R.Var->getIndex(); |
68 return Lstart < Rstart; | 68 return Lstart < Rstart; |
69 } | 69 } |
70 }; | 70 }; |
71 typedef std::set<LiveRangeWrapper, RangeCompare> OrderedRanges; | 71 typedef std::set<LiveRangeWrapper, RangeCompare> OrderedRanges; |
72 typedef std::list<LiveRangeWrapper> UnorderedRanges; | 72 typedef std::list<LiveRangeWrapper> UnorderedRanges; |
73 OrderedRanges Unhandled; | 73 OrderedRanges Unhandled; |
| 74 // UnhandledPrecolored is a subset of Unhandled, specially collected |
| 75 // for faster processing. |
| 76 OrderedRanges UnhandledPrecolored; |
74 UnorderedRanges Active, Inactive, Handled; | 77 UnorderedRanges Active, Inactive, Handled; |
75 LinearScan(const LinearScan &) = delete; | 78 LinearScan(const LinearScan &) = delete; |
76 LinearScan &operator=(const LinearScan &) = delete; | 79 LinearScan &operator=(const LinearScan &) = delete; |
77 }; | 80 }; |
78 | 81 |
79 } // end of namespace Ice | 82 } // end of namespace Ice |
80 | 83 |
81 #endif // SUBZERO_SRC_ICEREGALLOC_H | 84 #endif // SUBZERO_SRC_ICEREGALLOC_H |
OLD | NEW |