@@ -46,7 +46,7 @@ class RegAllocDevelopmentFeaturesTest : public ::Test {
46
46
protected:
47
47
SmallVector<LRStartEndInfo>
48
48
setupOverlapProblem (const SmallVectorImpl<LRPosInfoIndexes> &Segments,
49
- ilist <IndexListEntry> &IndexList) {
49
+ simple_ilist <IndexListEntry> &IndexList) {
50
50
SmallVector<LRStartEndInfo> PositionsToReturn;
51
51
PositionsToReturn.reserve (Segments.size ());
52
52
for (auto CurrentPosIndexInfo : Segments) {
@@ -61,7 +61,7 @@ class RegAllocDevelopmentFeaturesTest : public ::Test {
61
61
Allocator.Allocate (sizeof (IndexListEntry), alignof (IndexListEntry)));
62
62
auto *CurrentListEntry =
63
63
new (CurrentLEMem) IndexListEntry (nullptr , CurrentIndex);
64
- IndexList.push_back (CurrentListEntry);
64
+ IndexList.push_back (* CurrentListEntry);
65
65
for (size_t CurrentPosInfoIndex = 0 ;
66
66
CurrentPosInfoIndex < Segments.size (); ++CurrentPosInfoIndex) {
67
67
if ((CurrentIndex / SlotIndex::InstrDist) ==
@@ -107,7 +107,7 @@ class RegAllocDevelopmentFeaturesTest : public ::Test {
107
107
}
108
108
109
109
void runOverlapTest (SmallVectorImpl<LRPosInfoIndexes> &OverlapSetup) {
110
- ilist <IndexListEntry> IndexList;
110
+ simple_ilist <IndexListEntry> IndexList;
111
111
auto OverlapProblem = setupOverlapProblem (OverlapSetup, IndexList);
112
112
NoInferenceModelRunner ModelRunner = setupModelRunner ();
113
113
size_t MaxIndex = 0 ;
@@ -131,7 +131,7 @@ class RegAllocDevelopmentFeaturesTest : public ::Test {
131
131
NumberOfInterferences * ModelMaxSupportedInstructionCount);
132
132
ASSERT_THAT (MappingMatrix,
133
133
ContainerEq (getExpectedMappingMatrix (OverlapSetup)));
134
- IndexList.clearAndLeakNodesUnsafely ();
134
+ IndexList.clear ();
135
135
}
136
136
137
137
BumpPtrAllocator Allocator;
@@ -144,7 +144,7 @@ TEST_F(RegAllocDevelopmentFeaturesTest,
144
144
SmallVector<LRPosInfoIndexes, 2 > OverlapSetup;
145
145
OverlapSetup.push_back ({0 , 5 , 0 });
146
146
OverlapSetup.push_back ({5 , 10 , 0 });
147
- ilist <IndexListEntry> IndexList;
147
+ simple_ilist <IndexListEntry> IndexList;
148
148
auto OverlapProblem = setupOverlapProblem (OverlapSetup, IndexList);
149
149
ASSERT_EQ (OverlapProblem[0 ].End .distance (OverlapProblem[1 ].End ),
150
150
5 * SlotIndex::InstrDist);
@@ -154,7 +154,7 @@ TEST_F(RegAllocDevelopmentFeaturesTest,
154
154
TEST_F (RegAllocDevelopmentFeaturesTest, MetaSlotIndicesAreValid) {
155
155
SmallVector<LRPosInfoIndexes, 1 > OverlapSetup;
156
156
OverlapSetup.push_back ({0 , 10 , 0 });
157
- ilist <IndexListEntry> IndexList;
157
+ simple_ilist <IndexListEntry> IndexList;
158
158
auto OverlapProblem = setupOverlapProblem (OverlapSetup, IndexList);
159
159
ASSERT_TRUE (OverlapProblem[0 ].Begin .isValid ());
160
160
ASSERT_TRUE (OverlapProblem[0 ].End .isValid ());
@@ -165,7 +165,7 @@ TEST_F(RegAllocDevelopmentFeaturesTest, MetaSlotIndicesAreValid) {
165
165
TEST_F (RegAllocDevelopmentFeaturesTest, InstructionOpcodesAreCorrect) {
166
166
SmallVector<LRPosInfoIndexes, 1 > OverlapSetup;
167
167
OverlapSetup.push_back ({0 , ModelMaxSupportedInstructionCount - 1 , 0 });
168
- ilist <IndexListEntry> IndexList;
168
+ simple_ilist <IndexListEntry> IndexList;
169
169
auto OverlapProblem = setupOverlapProblem (OverlapSetup, IndexList);
170
170
NoInferenceModelRunner ModelRunner = setupModelRunner ();
171
171
SlotIndex LastIndex = OverlapProblem[0 ].End ;
@@ -247,7 +247,7 @@ TEST_F(RegAllocDevelopmentFeaturesTest, SingleMBBTest) {
247
247
TEST_F (RegAllocDevelopmentFeaturesTest, MBBFullTruncated) {
248
248
SmallVector<LRPosInfoIndexes, 1 > OverlapSetup;
249
249
OverlapSetup.push_back ({0 , ModelMaxSupportedInstructionCount - 1 , 0 });
250
- ilist <IndexListEntry> IndexList;
250
+ simple_ilist <IndexListEntry> IndexList;
251
251
auto OverlapProblem = setupOverlapProblem (OverlapSetup, IndexList);
252
252
NoInferenceModelRunner ModelRunner = setupModelRunner ();
253
253
SlotIndex LastIndex = OverlapProblem[0 ].End ;
0 commit comments